Index: chrome/browser/android/tab_base_android_impl.cc |
diff --git a/chrome/browser/android/tab_base_android_impl.cc b/chrome/browser/android/tab_base_android_impl.cc |
index b2f639d494c71d957f116116b7e499ea15e3a37a..9439ea83649fdb486635aaf6031982be0d6ed1bd 100644 |
--- a/chrome/browser/android/tab_base_android_impl.cc |
+++ b/chrome/browser/android/tab_base_android_impl.cc |
@@ -13,6 +13,8 @@ |
#include "content/public/browser/web_contents.h" |
#include "googleurl/src/gurl.h" |
#include "jni/TabBase_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/android/window_android.h" |
@@ -58,8 +60,9 @@ TabBaseAndroidImpl::TabBaseAndroidImpl(JNIEnv* env, |
jobject obj, |
WebContents* web_contents, |
WindowAndroid* window_android) |
- : web_contents_(web_contents), |
- tab_layer_(WebKit::WebLayer::create()) { |
+ : web_contents_(web_contents) { |
+ tab_layer_.reset( |
+ WebKit::Platform::current()->compositorSupport()->createLayer()); |
InitTabHelpers(web_contents); |
WindowAndroidHelper::FromWebContents(web_contents)-> |
SetWindowAndroid(window_android); |