Flutter Engine
The Flutter Engine
|
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 |
virtual void | draw (DlCanvas &canvas, const DlPaint *paint, bool preserve_rtree) const |
virtual SkISize | image_dimensions () const |
virtual int64_t | image_bytes () const |
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 28 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 32 of file mock_raster_cache.h.
|
inlineoverridevirtual |
Reimplemented from flutter::RasterCacheResult.
Definition at line 40 of file mock_raster_cache.h.
|
inlineoverridevirtual |
Reimplemented from flutter::RasterCacheResult.
Definition at line 36 of file mock_raster_cache.h.