Chromium Code Reviews| Index: Source/platform/image-decoders/jpeg/JPEGImageDecoder.h |
| diff --git a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h |
| index 9293a67e44a45766ff89348e833f5e203c0be4cf..c246798d87da09810971b47a835356dd6a841f3b 100644 |
| --- a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h |
| +++ b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h |
| @@ -48,12 +48,16 @@ public: |
| virtual bool isSizeAvailable() OVERRIDE; |
| virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; } |
| virtual IntSize decodedSize() const OVERRIDE { return m_decodedSize; } |
| + virtual IntSize decodedYUVSize(int component) const OVERRIDE; |
| virtual bool setSize(unsigned width, unsigned height) OVERRIDE; |
| virtual ImageFrame* frameBufferAtIndex(size_t) OVERRIDE; |
| // CAUTION: setFailed() deletes |m_reader|. Be careful to avoid |
| // accessing deleted memory, especially when calling this from inside |
| // JPEGImageReader! |
| virtual bool setFailed() OVERRIDE; |
| + virtual bool YUVDecoding() const OVERRIDE { return m_imagePlanes.get(); } |
|
Noel Gordon
2014/07/28 07:29:07
Could you have imagePlanes, but be decoding into o
|
| + virtual bool decodeToYUV() OVERRIDE; |
| + virtual void setImagePlanes(OwnPtr<ImagePlanes>&) OVERRIDE; |
| bool outputScanlines(); |
| unsigned desiredScaleNumerator() const; |
| @@ -70,6 +74,7 @@ private: |
| void decode(bool onlySize); |
| OwnPtr<JPEGImageReader> m_reader; |
| + OwnPtr<ImagePlanes> m_imagePlanes; |
| IntSize m_decodedSize; |
| bool m_hasColorProfile; |
| }; |