#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 DlMatrix &matrix)=0 |
| virtual void | PrerollFinalize (PrerollContext *context, const DlMatrix &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 DlMatrix &matrix) |
| 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 27 of file raster_cache_item.h.
| Enumerator | |
|---|---|
| kNone | |
| kCurrent | |
| kChildren | |
Definition at line 29 of file raster_cache_item.h.
|
inlineexplicit |
Definition at line 35 of file raster_cache_item.h.
|
virtualdefault |
|
inline |
Definition at line 65 of file raster_cache_item.h.
References cache_state_.
Referenced by flutter::testing::RasterCacheItemTryToRasterCache().
|
inline |
|
pure virtual |
Implemented in flutter::DisplayListRasterCacheItem, and flutter::LayerRasterCacheItem.
|
pure virtual |
Implemented in flutter::DisplayListRasterCacheItem, and flutter::LayerRasterCacheItem.
|
inlinevirtual |
Reimplemented in flutter::LayerRasterCacheItem.
Definition at line 55 of file raster_cache_item.h.
References key_id_.
Referenced by flutter::testing::TEST(), flutter::testing::TEST(), and flutter::DisplayListRasterCacheItem::TryToPrepareRasterCache().
|
inline |
Definition at line 67 of file raster_cache_item.h.
References cache_state_, and kNone.
Referenced by flutter::testing::TEST_F().
|
pure virtual |
Implemented in flutter::DisplayListRasterCacheItem, and flutter::LayerRasterCacheItem.
Referenced by flutter::AutoCache::~AutoCache().
|
pure virtual |
Implemented in flutter::DisplayListRasterCacheItem, and flutter::LayerRasterCacheItem.
Referenced by flutter::AutoCache::AutoCache().
|
inline |
Definition at line 62 of file raster_cache_item.h.
References matrix_, and flutter::ToSkMatrix().
Referenced by flutter::testing::TEST().
|
inline |
|
pure virtual |
Implemented in flutter::DisplayListRasterCacheItem, and flutter::LayerRasterCacheItem.
|
protected |
Definition at line 74 of file raster_cache_item.h.
Referenced by cache_state(), flutter::DisplayListRasterCacheItem::Draw(), flutter::LayerRasterCacheItem::IsCacheChildren(), need_caching(), flutter::DisplayListRasterCacheItem::PrerollFinalize(), flutter::DisplayListRasterCacheItem::PrerollSetup(), and flutter::DisplayListRasterCacheItem::TryToPrepareRasterCache().
|
protected |
Definition at line 76 of file raster_cache_item.h.
Referenced by child_items().
|
protected |
Definition at line 73 of file raster_cache_item.h.
Referenced by flutter::DisplayListRasterCacheItem::Draw(), GetId(), and flutter::DisplayListRasterCacheItem::PrerollFinalize().
|
mutableprotected |
Definition at line 75 of file raster_cache_item.h.
Referenced by flutter::DisplayListRasterCacheItem::ModifyMatrix(), set_matrix(), and set_matrix().