5#include "flutter/flow/layers/cacheable_layer.h"
12 : raster_cache_item_(raster_cache_item),
16 if (IsCacheEnabled()) {
22bool AutoCache::IsCacheEnabled() {
26 return raster_cache_item_ && context_ && context_->raster_cache;
32 if (IsCacheEnabled()) {
39 bool can_cache_children) {
42 this, layer_cached_threshold, can_cache_children);
AutoCache(RasterCacheItem *raster_cache_item, PrerollContext *context, const SkMatrix &matrix)
CacheableContainerLayer(int layer_cached_threshold=RasterCacheUtil::kMinimumRendersBeforeCachingFilterLayer, bool can_cache_children=false)
std::unique_ptr< LayerRasterCacheItem > layer_raster_cache_item_
static std::unique_ptr< LayerRasterCacheItem > Make(Layer *, int layer_cache_threshold, bool can_cache_children=false)
Create a LayerRasterCacheItem, connect a layer and manage the Layer's raster cache.
virtual void PrerollFinalize(PrerollContext *context, const SkMatrix &matrix)=0
virtual void PrerollSetup(PrerollContext *context, const SkMatrix &matrix)=0
unsigned useCenter Optional< SkMatrix > matrix