| Index: Source/platform/graphics/ImageFrameGenerator.h
|
| diff --git a/Source/platform/graphics/ImageFrameGenerator.h b/Source/platform/graphics/ImageFrameGenerator.h
|
| index 720b63b8d66a9a6a4e70e92e12e87e24a101c58a..94cf02d0a86bd811745af9a0bdddeaa3de102584 100644
|
| --- a/Source/platform/graphics/ImageFrameGenerator.h
|
| +++ b/Source/platform/graphics/ImageFrameGenerator.h
|
| @@ -41,6 +41,7 @@
|
|
|
| namespace blink {
|
|
|
| +class DecodingBuffers;
|
| class ImageDecoder;
|
| class ScaledImageFragment;
|
| class SharedBuffer;
|
| @@ -73,6 +74,9 @@ public:
|
| // Returns true if decoding was successful.
|
| bool decodeAndScale(const SkImageInfo&, size_t index, void* pixels, size_t rowBytes);
|
|
|
| + // Decodes components directly into the provided memory planes.
|
| + bool decodeAndScale(void* planes[3], size_t rowBytes[3]);
|
| +
|
| void setData(PassRefPtr<SharedBuffer>, bool allDataReceived);
|
|
|
| // Creates a new SharedBuffer containing the data received so far.
|
| @@ -85,6 +89,9 @@ public:
|
| // FIXME: Return alpha state for each frame.
|
| bool hasAlpha(size_t);
|
|
|
| + // Returns sizes for the first 3 components of an image (could be RGB, YUV, etc)
|
| + bool getComponentSizes(SkISize componentSizes[3]);
|
| +
|
| private:
|
| class ExternalMemoryAllocator;
|
| friend class ImageFrameGeneratorTest;
|
| @@ -111,6 +118,8 @@ private:
|
| ThreadSafeDataTransport m_data;
|
| bool m_isMultiFrame;
|
| bool m_decodeFailedAndEmpty;
|
| + bool m_acceleratedYUVDecoding;
|
| + OwnPtr<DecodingBuffers> m_decodingBuffers;
|
| Vector<bool> m_hasAlpha;
|
| size_t m_decodeCount;
|
| OwnPtr<SkBitmap::Allocator> m_discardableAllocator;
|
|
|