| Index: content/shell/android/shell_manager.cc
|
| diff --git a/content/shell/android/shell_manager.cc b/content/shell/android/shell_manager.cc
|
| index 71ed3ab17bc30387d661f0f1b6fad80ea2991f03..1e978846819d2e453b34bcb1a4622322b4134879 100644
|
| --- a/content/shell/android/shell_manager.cc
|
| +++ b/content/shell/android/shell_manager.cc
|
| @@ -20,6 +20,8 @@
|
| #include "content/shell/shell.h"
|
| #include "googleurl/src/gurl.h"
|
| #include "jni/ShellManager_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"
|
|
|
| @@ -77,7 +79,9 @@ jobject CreateShellView() {
|
| 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());
|
| + WebKit::WebCompositorSupport* compositor_support =
|
| + WebKit::Platform::current()->compositorSupport();
|
| + g_global_state.Get().root_layer.reset(compositor_support->createLayer());
|
| }
|
| return Java_ShellManager_createShell(
|
| env, g_global_state.Get().j_obj.obj()).Release();
|
|
|