Flutter Engine
The Flutter Engine
|
#include <SkYUVPlanesCache.h>
Static Public Member Functions | |
static SkCachedData * | FindAndRef (uint32_t genID, SkYUVAPixmaps *pixmaps, SkResourceCache *localCache=nullptr) |
static void | Add (uint32_t genID, SkCachedData *data, const SkYUVAPixmaps &pixmaps, SkResourceCache *localCache=nullptr) |
Definition at line 19 of file SkYUVPlanesCache.h.
|
static |
Add a pixelRef ID and its YUV planes data to the cache. The SkYUVAPixmaps should contain SkPixmaps that store their pixel data in the SkCachedData.
Definition at line 93 of file SkYUVPlanesCache.cpp.
|
static |
On success, return a ref to the SkCachedData that holds the pixel data. The SkYUVAPixmaps contains a description of the YUVA data and has a SkPixmap for each plane that points into the SkCachedData.
On failure, return nullptr.
Definition at line 80 of file SkYUVPlanesCache.cpp.