diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/browser/android/content_view_render_view.cc | 5 | ||||
-rw-r--r-- | content/browser/renderer_host/render_widget_host_view_android.cc | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/content/browser/android/content_view_render_view.cc b/content/browser/android/content_view_render_view.cc index 1db4e61..d2d3e2b 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()); } diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc index 61d4073..6c6782e 100644 --- a/content/browser/renderer_host/render_widget_host_view_android.cc +++ b/content/browser/renderer_host/render_widget_host_view_android.cc @@ -54,7 +54,8 @@ RenderWidgetHostViewAndroid::RenderWidgetHostViewAndroid( is_hidden_(!content_view_core), content_view_core_(content_view_core), ime_adapter_android_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), - texture_layer_(WebKit::WebExternalTextureLayer::create()), + texture_layer_(WebKit::Platform::current()-> + compositorSupport()->createExternalTextureLayer()), texture_id_in_layer_(0) { host_->SetView(this); // RenderWidgetHost is initialized as visible. If is_hidden_ is true, tell |