Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
flutter::AutoCache Class Reference

#include <cacheable_layer.h>

Public Member Functions

 AutoCache (RasterCacheItem *raster_cache_item, PrerollContext *context, const SkMatrix &matrix)
 
void ShouldNotBeCached ()
 
 ~AutoCache ()
 

Detailed Description

Definition at line 15 of file cacheable_layer.h.

Constructor & Destructor Documentation

◆ AutoCache()

flutter::AutoCache::AutoCache ( RasterCacheItem raster_cache_item,
PrerollContext context,
const SkMatrix matrix 
)

Definition at line 9 of file cacheable_layer.cc.

12 : raster_cache_item_(raster_cache_item),
13 context_(context),
14 matrix_(matrix) {
15 if (IsCacheEnabled()) {
16 raster_cache_item->PrerollSetup(context, matrix);
17 }
18}

◆ ~AutoCache()

flutter::AutoCache::~AutoCache ( )

Definition at line 24 of file cacheable_layer.cc.

24 {
25 if (IsCacheEnabled()) {
26 raster_cache_item_->PrerollFinalize(context_, matrix_);
27 }
28}
virtual void PrerollFinalize(PrerollContext *context, const SkMatrix &matrix)=0

Member Function Documentation

◆ ShouldNotBeCached()

void flutter::AutoCache::ShouldNotBeCached ( )
inline

Definition at line 21 of file cacheable_layer.h.

21{ raster_cache_item_ = nullptr; }

The documentation for this class was generated from the following files: