#include <layer_tree.h>
Public Member Functions | |
| LayerTree (const std::shared_ptr< Layer > &root_layer, const DlISize &frame_size) | |
| bool | Preroll (CompositorContext::ScopedFrame &frame, bool ignore_raster_cache=false, DlRect cull_rect=kGiantRect) |
| void | Paint (CompositorContext::ScopedFrame &frame, bool ignore_raster_cache=false) const |
| sk_sp< DisplayList > | Flatten (const DlRect &bounds, const std::shared_ptr< TextureRegistry > &texture_registry=nullptr, GrDirectContext *gr_context=nullptr) |
| Layer * | root_layer () const |
| const DlISize & | frame_size () const |
| const PaintRegionMap & | paint_region_map () const |
| PaintRegionMap & | paint_region_map () |
Static Public Member Functions | |
| static void | TryToRasterCache (const std::vector< RasterCacheItem * > &raster_cached_entries, const PaintContext *paint_context, bool ignore_raster_cache=false) |
Definition at line 22 of file layer_tree.h.
| flutter::LayerTree::LayerTree | ( | const std::shared_ptr< Layer > & | root_layer, |
| const DlISize & | frame_size | ||
| ) |
Definition at line 20 of file layer_tree.cc.
| sk_sp< DisplayList > flutter::LayerTree::Flatten | ( | const DlRect & | bounds, |
| const std::shared_ptr< TextureRegistry > & | texture_registry = nullptr, |
||
| GrDirectContext * | gr_context = nullptr |
||
| ) |
Definition at line 147 of file layer_tree.cc.
References flutter::DisplayListBuilder::Build(), flutter::PrerollContext::gr_context, flutter::LayerStateStack::set_delegate(), flutter::LayerStateStack::set_preroll_delegate(), flutter::PaintContext::state_stack, and TRACE_EVENT0.
|
inline |
Definition at line 54 of file layer_tree.h.
Referenced by flutter::FrameDamage::ComputeClipRect(), flutter::CompositorContext::ScopedFrame::Raster(), flutter::Rasterizer::ScreenshotLastLayerTree(), and flutter::ScreenshotLayerTreeAsPicture().
| void flutter::LayerTree::Paint | ( | CompositorContext::ScopedFrame & | frame, |
| bool | ignore_raster_cache = false |
||
| ) | const |
Definition at line 96 of file layer_tree.cc.
References flutter::CompositorContext::ScopedFrame::aiks_context(), flutter::CompositorContext::ScopedFrame::canvas(), flutter::CompositorContext::ScopedFrame::context(), flutter::RasterCache::EvictUnusedCacheEntries(), FML_LOG, flutter::GetColorSpace(), flutter::CompositorContext::ScopedFrame::gr_context(), flutter::CompositorContext::raster_cache(), flutter::CompositorContext::raster_time(), flutter::LayerStateStack::set_delegate(), flutter::PaintContext::state_stack, flutter::CompositorContext::texture_registry(), TRACE_EVENT0, TryToRasterCache(), flutter::CompositorContext::ui_time(), and flutter::CompositorContext::ScopedFrame::view_embedder().
|
inline |
Definition at line 57 of file layer_tree.h.
|
inline |
Definition at line 56 of file layer_tree.h.
Referenced by flutter::FrameDamage::ComputeClipRect().
| bool flutter::LayerTree::Preroll | ( | CompositorContext::ScopedFrame & | frame, |
| bool | ignore_raster_cache = false, |
||
| DlRect | cull_rect = kGiantRect |
||
| ) |
Definition at line 28 of file layer_tree.cc.
References flutter::CompositorContext::ScopedFrame::canvas(), flutter::CompositorContext::ScopedFrame::context(), FML_LOG, flutter::GetColorSpace(), flutter::CompositorContext::ScopedFrame::gr_context(), flutter::CompositorContext::raster_cache(), flutter::CompositorContext::raster_time(), flutter::CompositorContext::ScopedFrame::root_surface_transformation(), flutter::LayerStateStack::set_preroll_delegate(), flutter::PrerollContext::surface_needs_readback, flutter::CompositorContext::texture_registry(), TRACE_EVENT0, flutter::CompositorContext::ui_time(), and flutter::CompositorContext::ScopedFrame::view_embedder().
Referenced by flutter::CompositorContext::ScopedFrame::Raster().
|
inline |
Definition at line 53 of file layer_tree.h.
Referenced by flutter::FrameDamage::ComputeClipRect().
|
static |
Definition at line 67 of file layer_tree.cc.
References i.
Referenced by Paint(), flutter::testing::TEST(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().