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

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

Issue 609923003: Adding blink side flag that allows disabling YUV decoding (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | Source/platform/graphics/DecodingImageGenerator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/DecodingImageGenerator.h
diff --git a/Source/platform/graphics/DecodingImageGenerator.h b/Source/platform/graphics/DecodingImageGenerator.h
index a7e228d9183a623aa7bc9175b814bdc164f029b7..3d1e1d7dc792a42be7691f8f0af96415fdd182ba 100644
--- a/Source/platform/graphics/DecodingImageGenerator.h
+++ b/Source/platform/graphics/DecodingImageGenerator.h
@@ -49,6 +49,9 @@ public:
void setGenerationId(size_t id) { m_generationId = id; }
+ static void setYUVDecodingEnabled(bool);
Stephen White 2014/09/26 19:21:14 Since this doesn't really decode YUV at all, let's
+ static bool yuvDecodingEnabled();
+
protected:
virtual SkData* onRefEncodedData() OVERRIDE;
virtual bool onGetInfo(SkImageInfo*) OVERRIDE;
@@ -60,6 +63,8 @@ private:
SkImageInfo m_imageInfo;
size_t m_frameIndex;
size_t m_generationId;
+
+ static bool s_yuvDecodingEnabled;
};
} // namespace blink
« no previous file with comments | « no previous file | Source/platform/graphics/DecodingImageGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698