Index: webkit/compositor_bindings/web_content_layer_impl.cc |
diff --git a/webkit/compositor_bindings/web_content_layer_impl.cc b/webkit/compositor_bindings/web_content_layer_impl.cc |
index e386e5275a3d811fb96a233b9c75a19ff42f79b9..ac82e67d530ffff4c9b3e28c6a3c3fe20f773961 100644 |
--- a/webkit/compositor_bindings/web_content_layer_impl.cc |
+++ b/webkit/compositor_bindings/web_content_layer_impl.cc |
@@ -7,7 +7,7 @@ |
#include "base/command_line.h" |
#include "cc/content_layer.h" |
#include "cc/picture_layer.h" |
-#include "cc/switches.h" |
+#include "cc/util.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayerClient.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" |
@@ -21,7 +21,7 @@ namespace WebKit { |
static bool usingPictureLayer() |
{ |
- return CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kEnableImplSidePainting); |
+ return cc::IsImplSidePaintingEnabled(CommandLine::ForCurrentProcess()); |
} |
WebContentLayerImpl::WebContentLayerImpl(WebContentLayerClient* client) |