A RasterCacheResult implementation that represents a cached Layer or DisplayList without the overhead of storage. More...
#include <mock_raster_cache.h>
Public Member Functions | |
| MockRasterCacheResult (SkRect device_rect) | |
| void | draw (DlCanvas &canvas, const DlPaint *paint=nullptr, bool preserve_rtree=false) const override |
| SkISize | image_dimensions () const override |
| int64_t | image_bytes () const override |
Public Member Functions inherited from flutter::RasterCacheResult | |
| RasterCacheResult (sk_sp< DlImage > image, const SkRect &logical_rect, const char *type, sk_sp< const DlRTree > rtree=nullptr) | |
| virtual | ~RasterCacheResult ()=default |
A RasterCacheResult implementation that represents a cached Layer or DisplayList without the overhead of storage.
This implementation is used by MockRasterCache only for testing proper usage of the RasterCache in layer unit tests.
Definition at line 26 of file mock_raster_cache.h.
|
explicit |
Definition at line 16 of file mock_raster_cache.cc.
|
inlineoverridevirtual |
Reimplemented from flutter::RasterCacheResult.
Definition at line 30 of file mock_raster_cache.h.
|
inlineoverridevirtual |
Reimplemented from flutter::RasterCacheResult.
Definition at line 38 of file mock_raster_cache.h.
References image_dimensions().
|
inlineoverridevirtual |
Reimplemented from flutter::RasterCacheResult.
Definition at line 34 of file mock_raster_cache.h.
Referenced by image_bytes().