diff options
Diffstat (limited to 'src/lazy/SkDiscardablePixelRef.h')
-rw-r--r-- | src/lazy/SkDiscardablePixelRef.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lazy/SkDiscardablePixelRef.h b/src/lazy/SkDiscardablePixelRef.h index 73a2b08250..695d441d2b 100644 --- a/src/lazy/SkDiscardablePixelRef.h +++ b/src/lazy/SkDiscardablePixelRef.h @@ -54,22 +54,16 @@ private: size_t rowBytes, SkDiscardableMemory::Factory* factory); - bool onQueryYUV8(SkYUVSizeInfo* sizeInfo, SkYUVColorSpace* colorSpace) const override { + bool onGetYUV8Planes(SkISize sizes[3], + void* planes[3], + size_t rowBytes[3], + SkYUVColorSpace* colorSpace) override { // If the image was already decoded with lockPixels(), favor not // re-decoding to YUV8 planes. if (fDiscardableMemory) { return false; } - return fGenerator->queryYUV8(sizeInfo, colorSpace); - } - - bool onGetYUV8Planes(const SkYUVSizeInfo& sizeInfo, void* planes[3]) override { - // If the image was already decoded with lockPixels(), favor not - // re-decoding to YUV8 planes. - if (fDiscardableMemory) { - return false; - } - return fGenerator->getYUV8Planes(sizeInfo, planes); + return fGenerator->getYUV8Planes(sizes, planes, rowBytes, colorSpace); } friend bool SkDEPRECATED_InstallDiscardablePixelRef(SkImageGenerator*, const SkIRect*, SkBitmap*, |