| Index: gpu/command_buffer/service/in_process_command_buffer.h
|
| diff --git a/gpu/command_buffer/service/in_process_command_buffer.h b/gpu/command_buffer/service/in_process_command_buffer.h
|
| index 9bdbd49616d2797d382f53b900ae419802a4ddb7..e36bfbd262149741c11dd0bce77841b21ab6e64b 100644
|
| --- a/gpu/command_buffer/service/in_process_command_buffer.h
|
| +++ b/gpu/command_buffer/service/in_process_command_buffer.h
|
| @@ -31,6 +31,15 @@ class GLSurface;
|
| class Size;
|
| }
|
|
|
| +#if defined(OS_ANDROID)
|
| +namespace gfx {
|
| +class SurfaceTextureBridge;
|
| +}
|
| +namespace gpu {
|
| +class StreamTextureManagerInProcess;
|
| +}
|
| +#endif
|
| +
|
| namespace gpu {
|
|
|
| namespace gles2 {
|
| @@ -109,6 +118,11 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer {
|
| virtual void QueueTask(const base::Closure& task) = 0;
|
| };
|
|
|
| +#if defined(OS_ANDROID)
|
| + scoped_refptr<gfx::SurfaceTextureBridge> GetSurfaceTexture(
|
| + uint32 stream_id);
|
| +#endif
|
| +
|
| private:
|
| bool InitializeOnGpuThread(bool is_offscreen,
|
| gfx::AcceleratedWidget window,
|
| @@ -159,6 +173,10 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer {
|
| State state_after_last_flush_;
|
| base::Lock state_after_last_flush_lock_;
|
|
|
| +#if defined(OS_ANDROID)
|
| + scoped_refptr<StreamTextureManagerInProcess> stream_texture_manager_;
|
| +#endif
|
| +
|
| // Only used with explicit scheduling and the gpu thread is the same as
|
| // the client thread.
|
| scoped_ptr<base::SequenceChecker> sequence_checker_;
|
|
|