5#ifndef FLUTTER_FLOW_LAYERS_LAYER_TREE_H_
6#define FLUTTER_FLOW_LAYERS_LAYER_TREE_H_
35 bool ignore_raster_cache =
false,
40 const std::vector<RasterCacheItem*>& raster_cached_entries,
42 bool ignore_raster_cache =
false);
46 bool ignore_raster_cache =
false)
const;
50 const std::shared_ptr<TextureRegistry>& texture_registry =
nullptr,
51 GrDirectContext* gr_context =
nullptr);
60 std::shared_ptr<Layer> root_layer_;
65 std::vector<RasterCacheItem*> raster_cache_items_;
Layer * root_layer() const
sk_sp< DisplayList > Flatten(const DlRect &bounds, const std::shared_ptr< TextureRegistry > &texture_registry=nullptr, GrDirectContext *gr_context=nullptr)
const PaintRegionMap & paint_region_map() const
const DlISize & frame_size() const
static void TryToRasterCache(const std::vector< RasterCacheItem * > &raster_cached_entries, const PaintContext *paint_context, bool ignore_raster_cache=false)
PaintRegionMap & paint_region_map()
bool Preroll(CompositorContext::ScopedFrame &frame, bool ignore_raster_cache=false, DlRect cull_rect=kGiantRect)
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
std::map< uint64_t, PaintRegion > PaintRegionMap
static constexpr DlRect kGiantRect
std::unique_ptr< LayerTree > layer_tree
The target layer tree to be drawn.
int64_t view_id
The target view to draw to.
float device_pixel_ratio
The pixel ratio of the target view.
LayerTreeTask(int64_t view_id, std::unique_ptr< LayerTree > layer_tree, float device_pixel_ratio)