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..925122711ee15eb275da18cfc2ce2d23c89037ae 100644 |
--- a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h |
+++ b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h |
@@ -47,13 +47,17 @@ public: |
virtual String filenameExtension() const OVERRIDE { return "jpg"; } |
virtual bool isSizeAvailable() OVERRIDE; |
virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; } |
- virtual IntSize decodedSize() const OVERRIDE { return m_decodedSize; } |
+ virtual IntSize decodedSize(int component = 0) 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 void setHardwareDecoding(bool hardwareDecoding) OVERRIDE { m_hardwareDecoding = hardwareDecoding; } |
Stephen White
2014/07/23 21:45:53
As above: maybe setAcceleratedYUVDecoding?
sugoi1
2014/07/24 15:48:31
Done.
|
+ virtual bool hardwareDecoding() const OVERRIDE { return m_hardwareDecoding; } |
+ virtual bool doHardwareDecoding() OVERRIDE; |
+ virtual void setDecodingBuffers(OwnPtr<DecodingBuffers>&) OVERRIDE; |
bool outputScanlines(); |
unsigned desiredScaleNumerator() const; |
@@ -70,8 +74,10 @@ private: |
void decode(bool onlySize); |
OwnPtr<JPEGImageReader> m_reader; |
+ OwnPtr<DecodingBuffers> m_decodingBuffers; |
IntSize m_decodedSize; |
bool m_hasColorProfile; |
+ bool m_hardwareDecoding; |
}; |
} // namespace blink |