| 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_IPC_GL_IN_PROCESS_CONTEXT_H_ | 5 #ifndef GPU_IPC_GL_IN_PROCESS_CONTEXT_H_ |
| 6 #define GPU_IPC_GL_IN_PROCESS_CONTEXT_H_ | 6 #define GPU_IPC_GL_IN_PROCESS_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class Size; | 21 class Size; |
| 22 } | 22 } |
| 23 | 23 |
| 24 #if defined(OS_ANDROID) | 24 #if defined(OS_ANDROID) |
| 25 namespace gl { | 25 namespace gl { |
| 26 class SurfaceTexture; | 26 class SurfaceTexture; |
| 27 } | 27 } |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 namespace gpu { | 30 namespace gpu { |
| 31 class InProcessCommandBuffer; |
| 31 struct SharedMemoryLimits; | 32 struct SharedMemoryLimits; |
| 32 | 33 |
| 33 namespace gles2 { | 34 namespace gles2 { |
| 34 class GLES2Implementation; | 35 class GLES2Implementation; |
| 35 } | 36 } |
| 36 | 37 |
| 37 class GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContext { | 38 class GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContext { |
| 38 public: | 39 public: |
| 39 virtual ~GLInProcessContext() {} | 40 virtual ~GLInProcessContext() {} |
| 40 | 41 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 55 const gpu::gles2::ContextCreationAttribHelper& attribs, | 56 const gpu::gles2::ContextCreationAttribHelper& attribs, |
| 56 const SharedMemoryLimits& memory_limits, | 57 const SharedMemoryLimits& memory_limits, |
| 57 GpuMemoryBufferManager* gpu_memory_buffer_manager, | 58 GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 58 ImageFactory* image_factory, | 59 ImageFactory* image_factory, |
| 59 scoped_refptr<base::SingleThreadTaskRunner> task_runner); | 60 scoped_refptr<base::SingleThreadTaskRunner> task_runner); |
| 60 | 61 |
| 61 // Allows direct access to the GLES2 implementation so a GLInProcessContext | 62 // Allows direct access to the GLES2 implementation so a GLInProcessContext |
| 62 // can be used without making it current. | 63 // can be used without making it current. |
| 63 virtual gles2::GLES2Implementation* GetImplementation() = 0; | 64 virtual gles2::GLES2Implementation* GetImplementation() = 0; |
| 64 | 65 |
| 66 virtual InProcessCommandBuffer* GetInProcessCommandBuffer() = 0; |
| 67 |
| 65 virtual void SetLock(base::Lock* lock) = 0; | 68 virtual void SetLock(base::Lock* lock) = 0; |
| 66 }; | 69 }; |
| 67 | 70 |
| 68 } // namespace gpu | 71 } // namespace gpu |
| 69 | 72 |
| 70 #endif // GPU_IPC_GL_IN_PROCESS_CONTEXT_H_ | 73 #endif // GPU_IPC_GL_IN_PROCESS_CONTEXT_H_ |
| OLD | NEW |