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

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

Issue 26753005: Adding compositor callbacks to RenderWidgetHostViewAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change RWHVA to add itself to the compositor as per sievers@ comment Created 7 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: 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 6b83da70b1c78d68412f74d33b839d21f87ab99e..a252fce9243b23a2c4704b6b9cd2868af0a62c9a 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -32,6 +32,7 @@ class WindowAndroid;
namespace content {
class RenderWidgetHostViewAndroid;
+class Compositor;
struct MenuItem;
// TODO(jrg): this is a shell. Upstream the rest.
@@ -303,6 +304,8 @@ class ContentViewCoreImpl : public ContentViewCore,
void AddBeginFrameSubscriber();
void RemoveBeginFrameSubscriber();
void SetNeedsAnimate();
+ void SetCompositor(Compositor* compositor);
no sievers 2013/10/16 23:34:23 We actually need a public content API for this to
powei 2013/10/19 00:05:18 Done.
+ Compositor* GetCompositor() const { return compositor_; }
private:
class ContentViewUserData;
@@ -383,6 +386,10 @@ class ContentViewCoreImpl : public ContentViewCore,
// will be sent to Renderer once it is ready.
int device_orientation_;
+ // ContentViewCore does not own the compositor. This reference is kept to
+ // allow for adding observers to the compositor.
+ Compositor* compositor_;
+
DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
};
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | content/browser/android/content_view_core_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698