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

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: 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_core_impl.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index 2496accb0e741f670181d78ee8a047de2f1aaf46..88da49e6726b145afff653a1b3cabeede96c48c0 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;
@@ -235,8 +235,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;
@@ -279,8 +279,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_;

Powered by Google App Engine
This is Rietveld 408576698