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

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

Issue 195583003: Add initial GpuMemoryBufferSurfaceTexture implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 93014f1941becff21a2134e1b61eaa7ffb2b8c62..1b76656a2ee966e9c5c591937f6b5f750a1d5a48 100644
--- a/content/browser/renderer_host/compositor_impl_android.h
+++ b/content/browser/renderer_host/compositor_impl_android.h
@@ -47,6 +47,13 @@ class CONTENT_EXPORT CompositorImpl
// Returns the Java Surface object for a given view surface id.
static jobject GetSurface(int surface_id);
+ // Returns the Java Surface object for a given surface texture id.
+ static jobject GetSurfaceTextureSurface(int surface_texture_id);
+
+ // Allocates a SurfaceTexture and returns a surface texture id. Returns -1
+ // on failure.
+ static int AllocateSurfaceTexture();
epennerAtGoogle 2014/03/12 00:45:06 Could this and the above possibly be fused? Is the
reveman 2014/03/12 16:07:06 surface_texture_id generation (giving the renderer
+
// Compositor implementation.
virtual void SetRootLayer(scoped_refptr<cc::Layer> root) OVERRIDE;
virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698