Chromium Code Reviews| 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..9532a2c459e31dd18d6665171c689f932b3a2004 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); |
|
aelias_OOO_until_Jul13
2012/10/23 03:22:55
This won't compile, missing parens after createLay
|
| InitTabHelpers(web_contents); |
| WindowAndroidHelper::FromWebContents(web_contents)-> |
| SetWindowAndroid(window_android); |