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

Unified Diff: android_webview/native/aw_contents.cc

Issue 11428091: Migrate the Android compositor to cc::Layer classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/native/webview_native.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 9a8cede2cdc615a4060c6e1b7f14ea4f1fa8a2af..adefe820e6281fd0f1c307eb9d1efc624e4bd77b 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -21,6 +21,7 @@
#include "base/message_loop.h"
#include "base/pickle.h"
#include "base/supports_user_data.h"
+#include "cc/layer.h"
#include "content/components/navigation_interception/intercept_navigation_delegate.h"
#include "content/public/browser/android/content_view_core.h"
#include "content/public/browser/browser_thread.h"
@@ -31,6 +32,7 @@
#include "content/public/common/ssl_status.h"
#include "jni/AwContents_jni.h"
#include "net/base/x509_certificate.h"
+#include "ui/gfx/transform.h"
using base::android::AttachCurrentThread;
using base::android::ConvertJavaStringToUTF16;
@@ -87,7 +89,7 @@ class NullCompositor : public content::Compositor {
virtual ~NullCompositor() {}
// Compositor
- virtual void SetRootLayer(WebKit::WebLayer* root) OVERRIDE {}
+ virtual void SetRootLayer(scoped_refptr<cc::Layer> root) OVERRIDE {}
virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE {}
virtual void SetVisible(bool visible) OVERRIDE {}
virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE {}
@@ -190,7 +192,7 @@ void AwContents::DidInitializeContentViewCore(JNIEnv* env, jobject obj,
jint content_view_core) {
ContentViewCore* core = reinterpret_cast<ContentViewCore*>(content_view_core);
DCHECK(core == ContentViewCore::FromWebContents(web_contents_.get()));
- compositor_->SetRootLayer(core->GetWebLayer());
+ compositor_->SetRootLayer(core->GetLayer());
Invalidate();
}
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | android_webview/native/webview_native.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698