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

Unified Diff: third_party/WebKit/Source/core/testing/InternalSettings.cpp

Issue 1405993008: compositor-worker: plumb element id and mutable properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix another media track layout test. Created 5 years, 1 month 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/core/testing/InternalSettings.cpp
diff --git a/third_party/WebKit/Source/core/testing/InternalSettings.cpp b/third_party/WebKit/Source/core/testing/InternalSettings.cpp
index 9ad74d0e61f6f4601a455b44a5f83a16a86efb10..99c30b3e171ae827b363cdd841cf6abb4704f166 100644
--- a/third_party/WebKit/Source/core/testing/InternalSettings.cpp
+++ b/third_party/WebKit/Source/core/testing/InternalSettings.cpp
@@ -76,6 +76,7 @@ InternalSettings::Backup::Backup(Settings* settings)
, m_originalImageColorProfilesEnabled(RuntimeEnabledFeatures::imageColorProfilesEnabled())
, m_originalImageAnimationPolicy(settings->imageAnimationPolicy())
, m_originalScrollTopLeftInteropEnabled(RuntimeEnabledFeatures::scrollTopLeftInteropEnabled())
+ , m_originalCompositorWorkerEnabled(RuntimeEnabledFeatures::compositorWorkerEnabled())
{
}
@@ -100,6 +101,7 @@ void InternalSettings::Backup::restoreTo(Settings* settings)
RuntimeEnabledFeatures::setImageColorProfilesEnabled(m_originalImageColorProfilesEnabled);
settings->setImageAnimationPolicy(m_originalImageAnimationPolicy);
RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(m_originalScrollTopLeftInteropEnabled);
+ RuntimeEnabledFeatures::setCompositorWorkerEnabled(m_originalCompositorWorkerEnabled);
}
#if ENABLE(OILPAN)
@@ -511,4 +513,10 @@ void InternalSettings::setPreloadLogging(bool enabled, ExceptionState& exception
settings()->setLogPreload(enabled);
}
+void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState& exceptionState)
+{
+ InternalSettingsGuardForSettings();
+ RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698