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

Unified Diff: content/browser/web_contents/web_contents_view_android.h

Issue 26753005: Adding compositor callbacks to RenderWidgetHostViewAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb compositor provider through instead of compositor Created 7 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/web_contents/web_contents_view_android.h
diff --git a/content/browser/web_contents/web_contents_view_android.h b/content/browser/web_contents/web_contents_view_android.h
index bcfc0cf4720224e501826d47d307996e3637f15e..e997777468e306a5656c3e3051f387f9633f3ea6 100644
--- a/content/browser/web_contents/web_contents_view_android.h
+++ b/content/browser/web_contents/web_contents_view_android.h
@@ -14,6 +14,7 @@
#include "ui/gfx/rect_f.h"
namespace content {
+class CompositorProvider;
class ContentViewCoreImpl;
// Android-specific implementation of the WebContentsView.
@@ -29,6 +30,8 @@ class WebContentsViewAndroid : public WebContentsViewPort,
// by the UI frontend.
void SetContentViewCore(ContentViewCoreImpl* content_view_core);
+ void SetCompositorProvider(CompositorProvider* compositor_provider);
+
#if defined(GOOGLE_TV)
void NotifyExternalSurface(int player_id,
bool is_request,
@@ -90,6 +93,9 @@ class WebContentsViewAndroid : public WebContentsViewPort,
// Interface for extensions to WebContentsView. Used to show the context menu.
scoped_ptr<WebContentsViewDelegate> delegate_;
+ // Pointer is not owned by this class.
+ CompositorProvider* compositor_provider_;
+
DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698