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

Unified Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 12390077: Android: Support GPU process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/renderer_host/compositor_impl_android.h
diff --git a/content/browser/renderer_host/compositor_impl_android.h b/content/browser/renderer_host/compositor_impl_android.h
index eb9d9f3de0128eeea1f7ebec2b29b402ca670925..2eb2bcbe79ce0bf5de0f0a7a217fd26f290f57c4 100644
--- a/content/browser/renderer_host/compositor_impl_android.h
+++ b/content/browser/renderer_host/compositor_impl_android.h
@@ -42,9 +42,13 @@ class CONTENT_EXPORT CompositorImpl
// Returns true if initialized with DIRECT_CONTEXT_ON_DRAW_THREAD.
static bool UsesDirectGL();
+ // Returns the Java Surface object for a given view surface id.
+ static jobject GetSurface(int surface_id);
+
// Compositor implementation.
virtual void SetRootLayer(scoped_refptr<cc::Layer> root) OVERRIDE;
virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE;
+ virtual void SetSurface(jobject surface) OVERRIDE;
virtual void SetVisible(bool visible) OVERRIDE;
virtual void setDeviceScaleFactor(float factor) OVERRIDE;
virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698