Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: content/browser/android/content_view_render_view.cc

Issue 11231017: Remove ::create factory functions from objects created via WebCompositorSupport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/android/content_view_render_view.cc
diff --git a/content/browser/android/content_view_render_view.cc b/content/browser/android/content_view_render_view.cc
index 1db4e6170516072cf955ea8c0b5d607af404f882..d2d3e2b74e94ccc4410d3c691f829eff11949ba1 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());
}
« no previous file with comments | « chrome/browser/android/tab_base_android_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698