Index: content/browser/android/content_view_render_view.cc |
diff --git a/content/browser/android/content_view_render_view.cc b/content/browser/android/content_view_render_view.cc |
index 1db4e6170516072cf955ea8c0b5d607af404f882..d2d3e2b74e94ccc4410d3c691f829eff11949ba1 100644 |
--- a/content/browser/android/content_view_render_view.cc |
+++ b/content/browser/android/content_view_render_view.cc |
@@ -15,6 +15,8 @@ |
#include "content/public/browser/android/content_view_layer_renderer.h" |
#include "content/public/browser/android/draw_delegate.h" |
#include "jni/ContentViewRenderView_jni.h" |
+#include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" |
+#include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSupport.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" |
#include "ui/gfx/size.h" |
@@ -90,7 +92,8 @@ void InitCompositor() { |
g_global_state.Get().compositor.reset( |
Compositor::Create(&g_global_state.Get().client)); |
DCHECK(!g_global_state.Get().root_layer.get()); |
- g_global_state.Get().root_layer.reset(WebKit::WebLayer::create()); |
+ g_global_state.Get().root_layer.reset( |
+ WebKit::Platform::current()->compositorSupport()->createLayer()); |
g_global_state.Get().layer_renderer.reset(new ContentViewLayerRendererImpl()); |
} |