#include <performance_overlay_layer.h>
Public Member Functions | |
| bool | IsReplacing (DiffContext *context, const Layer *layer) const override |
| void | Diff (DiffContext *context, const Layer *old_layer) override |
| const PerformanceOverlayLayer * | as_performance_overlay_layer () const override |
| PerformanceOverlayLayer (uint64_t options, const char *font_path=nullptr) | |
| void | Preroll (PrerollContext *context) override |
| void | Paint (PaintContext &context) const override |
Public Member Functions inherited from flutter::Layer | |
| Layer () | |
| virtual | ~Layer () |
| void | AssignOldLayer (Layer *old_layer) |
| virtual void | PreservePaintRegion (DiffContext *context) |
| virtual void | PaintChildren (PaintContext &context) const |
| bool | subtree_has_platform_view () const |
| void | set_subtree_has_platform_view (bool value) |
| const DlRect & | paint_bounds () const |
| void | set_paint_bounds (const DlRect &paint_bounds) |
| bool | is_empty () const |
| bool | needs_painting (PaintContext &context) const |
| uint64_t | original_layer_id () const |
| uint64_t | unique_id () const |
| virtual RasterCacheKeyID | caching_key_id () const |
| virtual const ContainerLayer * | as_container_layer () const |
| virtual const DisplayListLayer * | as_display_list_layer () const |
| virtual const TextureLayer * | as_texture_layer () const |
| virtual const testing::MockLayer * | as_mock_layer () const |
Static Public Member Functions | |
| static SkFont | MakeStatisticsFont (std::string_view font_path) |
| static sk_sp< SkTextBlob > | MakeStatisticsText (const Stopwatch &stopwatch, const SkFont &font, std::string_view label_prefix) |
Additional Inherited Members | |
Static Public Attributes inherited from flutter::Layer | |
| static constexpr int | kSaveLayerRenderFlags |
| static constexpr int | kRasterCacheRenderFlags |
Definition at line 23 of file performance_overlay_layer.h.
|
explicit |
Definition at line 107 of file performance_overlay_layer.cc.
|
inlineoverridevirtual |
Reimplemented from flutter::Layer.
Definition at line 37 of file performance_overlay_layer.h.
|
overridevirtual |
Reimplemented from flutter::Layer.
Definition at line 115 of file performance_overlay_layer.cc.
References flutter::DiffContext::AddLayerBounds(), flutter::Layer::as_performance_overlay_layer(), flutter::DiffContext::CurrentSubtreeRegion(), FML_DCHECK, flutter::DiffContext::GetOldLayerPaintRegion(), flutter::DiffContext::IsSubtreeDirty(), flutter::DiffContext::MarkSubtreeDirty(), flutter::Layer::paint_bounds(), and flutter::DiffContext::SetLayerPaintRegion().
|
inlineoverridevirtual |
Reimplemented from flutter::Layer.
Definition at line 31 of file performance_overlay_layer.h.
References flutter::Layer::as_performance_overlay_layer().
|
static |
Definition at line 71 of file performance_overlay_layer.cc.
References txt::GetDefaultFontManager().
Referenced by Paint(), and flutter::testing::TEST_F().
|
static |
Definition at line 88 of file performance_overlay_layer.cc.
References flutter::Stopwatch::AverageDelta(), FML_DCHECK, flutter::Stopwatch::MaxDelta(), text, and fml::TimeDelta::ToMillisecondsF().
Referenced by flutter::testing::TEST_F().
|
overridevirtual |
Implements flutter::Layer.
Definition at line 127 of file performance_overlay_layer.cc.
References flutter::PaintContext::canvas, impeller::TRect< T >::GetHeight(), impeller::TRect< T >::GetWidth(), impeller::TRect< T >::GetX(), impeller::TRect< T >::GetY(), height, flutter::PaintContext::impeller_enabled, flutter::kDisplayEngineStatistics, flutter::kDisplayRasterizerStatistics, flutter::kVisualizeEngineStatistics, flutter::kVisualizeRasterizerStatistics, MakeStatisticsFont(), padding, flutter::Layer::paint_bounds(), flutter::PaintContext::raster_time, flutter::LayerStateStack::save(), flutter::PaintContext::state_stack, flutter::PaintContext::ui_time, width, x, and y.
|
inlineoverridevirtual |