| 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() {}
|
| };
|
|
|