Index: webkit/compositor_bindings/web_layer_tree_view_impl.cc |
diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.cc b/webkit/compositor_bindings/web_layer_tree_view_impl.cc |
index f8e8d54ded61dfbd165686219a45d78347710f25..d7d47bfb5ae942ea547285ea7845e89c5a699e1c 100644 |
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.cc |
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.cc |
@@ -12,6 +12,7 @@ |
#include "cc/layer_tree_host.h" |
#include "cc/switches.h" |
#include "cc/thread.h" |
+#include "cc/util.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebInputHandler.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" |
@@ -52,7 +53,7 @@ bool WebLayerTreeViewImpl::initialize(const WebLayerTreeView::Settings& webSetti |
settings.initialDebugState.showPaintRects = webSettings.showPaintRects; |
settings.initialDebugState.showPlatformLayerTree = webSettings.showPlatformLayerTree; |
settings.initialDebugState.showDebugBorders = webSettings.showDebugBorders; |
- settings.implSidePainting = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kEnableImplSidePainting); |
+ settings.implSidePainting = cc::IsImplSidePaintingEnabled(CommandLine::ForCurrentProcess()); |
settings.recordRenderingStats = webSettings.recordRenderingStats; |
settings.useCheapnessEstimator = CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseCheapnessEstimator); |