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); |
+} |
+ |
} |