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

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

Issue 1460523002: GIF decoding to Index8, unit tests and misusing unit test as benchmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/ImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
index 36075eea0959d6be46ffdc7a321fee3eca5e043f..f5e3b8e2e406a281656d278acb5ab9eae1270d89 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
@@ -297,6 +297,10 @@ public:
virtual bool canDecodeToYUV() { return false; }
virtual bool decodeToYUV() { return false; }
virtual void setImagePlanes(PassOwnPtr<ImagePlanes>) { }
+ virtual bool canDecodeTo(size_t index, ImageFrame::ColorType outputType)
+ {
+ return outputType == ImageFrame::N32;
+ }
protected:
// Calculates the most recent frame whose image data may be needed in

Powered by Google App Engine
This is Rietveld 408576698