Flutter Engine
The Flutter Engine
|
#include <raster_cache_item.h>
Public Types | |
enum | CacheState { kNone = 0 , kCurrent , kChildren } |
Public Member Functions | |
RasterCacheItem (RasterCacheKeyID key_id, CacheState cache_state=CacheState::kNone, unsigned child_entries=0) | |
virtual void | PrerollSetup (PrerollContext *context, const SkMatrix &matrix)=0 |
virtual void | PrerollFinalize (PrerollContext *context, const SkMatrix &matrix)=0 |
virtual bool | Draw (const PaintContext &context, const DlPaint *paint) const =0 |
virtual bool | Draw (const PaintContext &context, DlCanvas *canvas, const DlPaint *paint) const =0 |
virtual std::optional< RasterCacheKeyID > | GetId () const |
virtual bool | TryToPrepareRasterCache (const PaintContext &context, bool parent_cached=false) const =0 |
unsigned | child_items () const |
void | set_matrix (const SkMatrix &matrix) |
CacheState | cache_state () const |
bool | need_caching () const |
virtual | ~RasterCacheItem ()=default |
Protected Attributes | |
RasterCacheKeyID | key_id_ |
CacheState | cache_state_ = CacheState::kNone |
SkMatrix | matrix_ |
unsigned | child_items_ |
Definition at line 24 of file raster_cache_item.h.
Enumerator | |
---|---|
kNone | |
kCurrent | |
kChildren |
Definition at line 26 of file raster_cache_item.h.
|
inlineexplicit |
Definition at line 32 of file raster_cache_item.h.
|
virtualdefault |
|
inline |
Definition at line 61 of file raster_cache_item.h.
|
inline |
Definition at line 57 of file raster_cache_item.h.
|
pure virtual |
Implemented in flutter::DisplayListRasterCacheItem, and flutter::LayerRasterCacheItem.
|
pure virtual |
Implemented in flutter::DisplayListRasterCacheItem, and flutter::LayerRasterCacheItem.
|
inlinevirtual |
|
inline |
Definition at line 63 of file raster_cache_item.h.
|
pure virtual |
Implemented in flutter::DisplayListRasterCacheItem, and flutter::LayerRasterCacheItem.
|
pure virtual |
Implemented in flutter::DisplayListRasterCacheItem, and flutter::LayerRasterCacheItem.
|
inline |
Definition at line 59 of file raster_cache_item.h.
|
pure virtual |
Implemented in flutter::DisplayListRasterCacheItem, and flutter::LayerRasterCacheItem.
|
protected |
Definition at line 70 of file raster_cache_item.h.
|
protected |
Definition at line 72 of file raster_cache_item.h.
|
protected |
Definition at line 69 of file raster_cache_item.h.
|
mutableprotected |
Definition at line 71 of file raster_cache_item.h.