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

Unified Diff: content/browser/android/content_view_render_view.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/android/content_view_render_view.h
diff --git a/content/browser/android/content_view_render_view.h b/content/browser/android/content_view_render_view.h
index 65c3874a66fc8e5f3bc03c9572dbc224f0195fba..fbeed547081d02472330e9eafbff99c184b123e0 100644
--- a/content/browser/android/content_view_render_view.h
+++ b/content/browser/android/content_view_render_view.h
@@ -10,11 +10,14 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "content/public/browser/android/compositor_client.h"
+#include "content/public/browser/android/compositor_provider.h"
+#include "content/public/browser/android/compositor_provider_client.h"
namespace content {
class Compositor;
-class ContentViewRenderView : public CompositorClient {
+class ContentViewRenderView : public CompositorClient,
+ public CompositorProvider {
public:
// Registers the JNI methods for ContentViewRender.
static bool RegisterContentViewRenderView(JNIEnv* env);
@@ -29,12 +32,19 @@ class ContentViewRenderView : public CompositorClient {
void SurfaceSetSize(JNIEnv* env, jobject obj, jint width, jint height);
jboolean Composite(JNIEnv* env, jobject obj);
jboolean CompositeToBitmap(JNIEnv* env, jobject obj, jobject java_bitmap);
+ jint GetNativeCompositorProviderPtr(JNIEnv* env, jobject obj);
// CompositorClient ---------------------------------------------------------
virtual void ScheduleComposite() OVERRIDE;
virtual void OnSwapBuffersPosted() OVERRIDE;
virtual void OnSwapBuffersCompleted() OVERRIDE;
+ // CompositorProvider -------------------------------------------------------
+ virtual Compositor* GetCompositor() OVERRIDE;
+ // Since the compositor never switches out, do not need to implement this.
+ virtual void AddCompositorProviderClient(CompositorProviderClient* client)
+ OVERRIDE {}
+
private:
virtual ~ContentViewRenderView();

Powered by Google App Engine
This is Rietveld 408576698