Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / image-decoders / jpeg / JPEGImageDecoder.h
index 3f2a881..c246798 100644 (file)
@@ -32,7 +32,7 @@
 #include "wtf/Noncopyable.h"
 #include "wtf/OwnPtr.h"
 
-namespace WebCore {
+namespace blink {
 
 class JPEGImageReader;
 
@@ -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(); }
+    virtual bool decodeToYUV() OVERRIDE;
+    virtual void setImagePlanes(OwnPtr<ImagePlanes>&) OVERRIDE;
 
     bool outputScanlines();
     unsigned desiredScaleNumerator() const;
@@ -70,10 +74,11 @@ private:
     void decode(bool onlySize);
 
     OwnPtr<JPEGImageReader> m_reader;
+    OwnPtr<ImagePlanes> m_imagePlanes;
     IntSize m_decodedSize;
     bool m_hasColorProfile;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif