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

Unified Diff: Source/web/WebSettingsImpl.cpp

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 | « Source/web/WebSettingsImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index 7e2188f734376b4a23cb499aea0d051ccf987b55..db82cb013a86eda9ffa0efa22b7343d326a50f49 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -33,6 +33,7 @@
#include "core/frame/Settings.h"
#include "core/inspector/InspectorController.h"
+#include "platform/graphics/DecodingImageGenerator.h"
#include "platform/graphics/DeferredImageDecoder.h"
#include "public/platform/WebString.h"
@@ -55,6 +56,7 @@ WebSettingsImpl::WebSettingsImpl(Settings* settings, InspectorController* inspec
, m_viewportMetaNonUserScalableQuirk(false)
, m_clobberUserAgentInitialScaleQuirk(false)
, m_mainFrameResizesAreOrientationChanges(false)
+ , m_decodeToYUVEnabled(false)
{
ASSERT(settings);
}
@@ -507,6 +509,12 @@ void WebSettingsImpl::setDeferredImageDecodingEnabled(bool enabled)
m_deferredImageDecodingEnabled = enabled;
}
+void WebSettingsImpl::setDecodeToYUVEnabled(bool enabled)
+{
+ DecodingImageGenerator::setDecodeToYUVEnabled(enabled);
+ m_decodeToYUVEnabled = enabled;
Stephen White 2014/09/26 19:31:00 Don't think there's any need for this.
+}
+
void WebSettingsImpl::setDeferredFiltersEnabled(bool enabled)
{
m_settings->setDeferredFiltersEnabled(enabled);
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698