Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2624)

Unified Diff: Source/platform/image-decoders/jpeg/JPEGImageDecoder.h

Issue 418653002: Allowing YUV data to be retrieved from the JPEG Decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed useless added parameter Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698