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 |