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

Unified Diff: content/browser/android/content_view_core_impl.h

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 | « cc/layer_tree_host.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_view_core_impl.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index ed307ca2bfb546d0cff9ffc124d2e74ec784b9e6..3558c43dd30d0d7939ff5235e34ec48dceb1a8c5 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -48,7 +48,7 @@ class ContentViewCoreImpl : public ContentViewCore,
OVERRIDE;
virtual WebContents* GetWebContents() const OVERRIDE;
virtual ui::WindowAndroid* GetWindowAndroid() const OVERRIDE;
- virtual WebKit::WebLayer* GetWebLayer() const OVERRIDE;
+ virtual scoped_refptr<cc::Layer> GetLayer() const OVERRIDE;
virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE;
virtual void OnWebPreferencesUpdated() OVERRIDE;
virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) OVERRIDE;
@@ -236,8 +236,8 @@ class ContentViewCoreImpl : public ContentViewCore,
gfx::Rect GetBounds() const;
- void AttachWebLayer(WebKit::WebLayer* layer);
- void RemoveWebLayer(WebKit::WebLayer* layer);
+ void AttachLayer(scoped_refptr<cc::Layer> layer);
+ void RemoveLayer(scoped_refptr<cc::Layer> layer);
private:
class ContentViewUserData;
@@ -280,8 +280,8 @@ class ContentViewCoreImpl : public ContentViewCore,
// display in the ContentViewCore.
WebContentsImpl* web_contents_;
- // A WebLayer containing any WebLayer that should be shown.
- scoped_ptr<WebKit::WebLayer> root_layer_;
+ // A compositor layer containing any layer that should be shown.
+ scoped_refptr<cc::Layer> root_layer_;
// Whether the renderer backing this ContentViewCore has crashed.
bool tab_crashed_;
« no previous file with comments | « cc/layer_tree_host.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698