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

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: . 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/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 f3686ffc69bee199942772c579c9ac5b5016616b..cd14e1f7ad2ac6c1115cf4ec1bd07ebe2530ce55 100644
--- a/third_party/WebKit/Source/core/testing/InternalSettings.cpp
+++ b/third_party/WebKit/Source/core/testing/InternalSettings.cpp
@@ -75,6 +75,7 @@ InternalSettings::Backup::Backup(Settings* settings)
, m_originalImageColorProfilesEnabled(RuntimeEnabledFeatures::imageColorProfilesEnabled())
, m_originalImageAnimationPolicy(settings->imageAnimationPolicy())
, m_originalScrollTopLeftInteropEnabled(RuntimeEnabledFeatures::scrollTopLeftInteropEnabled())
+ , m_originalCompositorWorkerEnabled(RuntimeEnabledFeatures::compositorWorkerEnabled())
{
}
@@ -99,6 +100,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)
@@ -510,4 +512,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