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

Unified Diff: gpu/ipc/common/android/surface_texture_manager.h

Issue 2268173002: Add StreamTexture resgistration for the Browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « gpu/ipc/client/android/in_process_surface_texture_manager.cc ('k') | gpu/ipc/common/gpu_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/android/surface_texture_manager.h
diff --git a/gpu/ipc/common/android/surface_texture_manager.h b/gpu/ipc/common/android/surface_texture_manager.h
index 8a0134b6804b5acade006f0b757d37c6db8a0daf..7ec09335a02010a8d75de75dfa4272f64539299d 100644
--- a/gpu/ipc/common/android/surface_texture_manager.h
+++ b/gpu/ipc/common/android/surface_texture_manager.h
@@ -10,6 +10,7 @@
namespace gl {
class SurfaceTexture;
+class ScopedJavaSurface;
}
namespace gpu {
@@ -33,6 +34,19 @@ class GPU_EXPORT SurfaceTextureManager {
virtual gfx::AcceleratedWidget AcquireNativeWidgetForSurfaceTexture(
int surface_texture_id) = 0;
+ // Register a surface texture for use in the browser process.
+ virtual void RegisterBrowserSurfaceTexture(
+ int surface_texture_id,
+ gl::SurfaceTexture* surface_texture) = 0;
+
+ // Unregister a surface texture previously registererd for use in the browser
+ // process.
+ virtual void UnregisterBrowserSurfaceTexture(int surface_texture_id) = 0;
+
+ // Acquires surface previously registered for use in the browser process.
+ virtual gl::ScopedJavaSurface GetBrowserSurfaceTexture(
+ int surface_texture_id) = 0;
+
protected:
virtual ~SurfaceTextureManager() {}
};
« no previous file with comments | « gpu/ipc/client/android/in_process_surface_texture_manager.cc ('k') | gpu/ipc/common/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698