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

Unified Diff: third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h

Issue 1508683002: DeferredImageDecoder: early-out onGetYUV8Planes when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for landing 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/graphics/DecodingImageGenerator.h
diff --git a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h
index 9a9ac40b4cbe9e356c656b1bc2edaf935b9225fb..64e08953cd90d2b09aaa2e1b7a71a1eee451c9fe 100644
--- a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h
+++ b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h
@@ -52,6 +52,7 @@ public:
~DecodingImageGenerator() override;
void setGenerationId(size_t id) { m_generationId = id; }
+ void setCanYUVDecode(bool yes) { m_canYUVDecode = yes; }
protected:
SkData* onRefEncodedData() override;
@@ -64,6 +65,7 @@ private:
RefPtr<ImageFrameGenerator> m_frameGenerator;
size_t m_frameIndex;
size_t m_generationId;
+ bool m_canYUVDecode;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698