| Index: chrome/android/testshell/tab_manager.cc
|
| diff --git a/chrome/android/testshell/tab_manager.cc b/chrome/android/testshell/tab_manager.cc
|
| index fc379dd155aeea242fde5138d8128766cb5b16ef..5c5465c50f82ce1fff9c6d1bda1257d6285535f7 100644
|
| --- a/chrome/android/testshell/tab_manager.cc
|
| +++ b/chrome/android/testshell/tab_manager.cc
|
| @@ -15,6 +15,8 @@
|
| #include "content/public/browser/android/compositor.h"
|
| #include "content/public/browser/android/draw_delegate.h"
|
| #include "jni/TabManager_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 <android/native_window_jni.h>
|
| @@ -72,7 +74,8 @@ static void Init(JNIEnv* env, jclass clazz, jobject obj) {
|
| g_global_state.Get().compositor.reset(content::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());
|
| }
|
| }
|
|
|
|
|