Index: Source/platform/graphics/ImageFrameGenerator.h |
diff --git a/Source/platform/graphics/ImageFrameGenerator.h b/Source/platform/graphics/ImageFrameGenerator.h |
index b3fbf58a2816e98b9bcbd5b80a0d21ae24e2beb4..e44e1fb1c16d5e77975b1748c8f457ff29e2af78 100644 |
--- a/Source/platform/graphics/ImageFrameGenerator.h |
+++ b/Source/platform/graphics/ImageFrameGenerator.h |
@@ -72,7 +72,7 @@ public: |
bool decodeAndScale(const SkImageInfo&, size_t index, void* pixels, size_t rowBytes); |
// Decodes YUV components directly into the provided memory planes. |
- bool decodeToYUV(void* planes[3], size_t rowBytes[3]); |
+ bool decodeToYUV(SkISize componentSizes[3], void* planes[3], size_t rowBytes[3]); |
void setData(PassRefPtr<SharedBuffer>, bool allDataReceived); |
@@ -97,6 +97,8 @@ private: |
void setHasAlpha(size_t index, bool hasAlpha); |
+ void getYUVComponentSizes(const ImageDecoder*, SkISize componentSizes[3], bool memoryAllocation); |
+ |
// These methods are called while m_decodeMutex is locked. |
SkBitmap tryToResumeDecode(const SkISize& scaledSize, size_t index); |