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

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: New name 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') | Source/web/WebSettingsImpl.cpp » ('J')
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..36acaca2a923a651684ee1b98f79cddf22b7aca8 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 setDecodeToYUVEnabled(bool);
+ static bool decodeToYUVEnabled();
+
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_decodeToYUVEnabled;
};
} // namespace blink
« no previous file with comments | « no previous file | Source/platform/graphics/DecodingImageGenerator.cpp » ('j') | Source/web/WebSettingsImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698