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

Unified Diff: chrome/android/testshell/tab_manager.cc

Issue 11231017: Remove ::create factory functions from objects created via WebCompositorSupport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android fixes + no .gitmodules Created 8 years, 2 months 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: 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());
}
}
« no previous file with comments | « no previous file | chrome/browser/android/tab_base_android_impl.cc » ('j') | chrome/browser/android/tab_base_android_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698