OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "gl_in_process_context_export.h" | 10 #include "gl_in_process_context_export.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 virtual gles2::GLES2Implementation* GetImplementation() = 0; | 75 virtual gles2::GLES2Implementation* GetImplementation() = 0; |
76 | 76 |
77 virtual size_t GetMappedMemoryLimit() = 0; | 77 virtual size_t GetMappedMemoryLimit() = 0; |
78 | 78 |
79 virtual void SetLock(base::Lock* lock) = 0; | 79 virtual void SetLock(base::Lock* lock) = 0; |
80 | 80 |
81 #if defined(OS_ANDROID) | 81 #if defined(OS_ANDROID) |
82 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( | 82 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( |
83 uint32 stream_id) = 0; | 83 uint32 stream_id) = 0; |
84 #endif | 84 #endif |
| 85 virtual uint32 CreateStreamTexture(uint32 texture_id) = 0; |
85 }; | 86 }; |
86 | 87 |
87 } // namespace gpu | 88 } // namespace gpu |
88 | 89 |
89 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ | 90 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ |
OLD | NEW |