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

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

Issue 1403393004: JPEGImageDecoder RGB565 and downsample support and related Skia imagegenerator changes Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
index dd2c690cc513aecad60f42b92901c39f9e5f9fb3..98e5a5b4f3f6c3477399fab28668e04d1b60a6f7 100644
--- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
@@ -54,6 +54,9 @@ public:
bool decodeToYUV() override;
void setImagePlanes(PassOwnPtr<ImagePlanes>) override;
bool hasImagePlanes() const { return m_imagePlanes; }
+ bool canDecodeToRGB565() override;
+ bool setDecodeRGB565Enabled(bool) override;
+ bool decodeToRGB565Enabled() const { return m_decodeToRGB565; }
bool outputScanlines();
unsigned desiredScaleNumerator() const;
@@ -77,6 +80,7 @@ private:
OwnPtr<ImagePlanes> m_imagePlanes;
IntSize m_decodedSize;
bool m_hasColorProfile;
+ bool m_decodeToRGB565;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698