| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 gfx::AcceleratedWidget window, | 64 gfx::AcceleratedWidget window, |
| 65 const gfx::Size& size, | 65 const gfx::Size& size, |
| 66 GLInProcessContext* share_context, | 66 GLInProcessContext* share_context, |
| 67 bool use_global_share_group, | 67 bool use_global_share_group, |
| 68 const gpu::gles2::ContextCreationAttribHelper& attribs, | 68 const gpu::gles2::ContextCreationAttribHelper& attribs, |
| 69 gfx::GpuPreference gpu_preference, | 69 gfx::GpuPreference gpu_preference, |
| 70 const GLInProcessContextSharedMemoryLimits& memory_limits, | 70 const GLInProcessContextSharedMemoryLimits& memory_limits, |
| 71 GpuMemoryBufferManager* gpu_memory_buffer_manager, | 71 GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 72 ImageFactory* image_factory); | 72 ImageFactory* image_factory); |
| 73 | 73 |
| 74 virtual void SetContextLostCallback(const base::Closure& callback) = 0; | |
| 75 | |
| 76 // Allows direct access to the GLES2 implementation so a GLInProcessContext | 74 // Allows direct access to the GLES2 implementation so a GLInProcessContext |
| 77 // can be used without making it current. | 75 // can be used without making it current. |
| 78 virtual gles2::GLES2Implementation* GetImplementation() = 0; | 76 virtual gles2::GLES2Implementation* GetImplementation() = 0; |
| 79 | 77 |
| 80 virtual size_t GetMappedMemoryLimit() = 0; | 78 virtual size_t GetMappedMemoryLimit() = 0; |
| 81 | 79 |
| 82 virtual void SetLock(base::Lock* lock) = 0; | 80 virtual void SetLock(base::Lock* lock) = 0; |
| 83 | 81 |
| 84 #if defined(OS_ANDROID) | 82 #if defined(OS_ANDROID) |
| 85 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( | 83 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( |
| 86 uint32_t stream_id) = 0; | 84 uint32_t stream_id) = 0; |
| 87 virtual uint32_t CreateStreamTexture(uint32_t texture_id) = 0; | 85 virtual uint32_t CreateStreamTexture(uint32_t texture_id) = 0; |
| 88 #endif | 86 #endif |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 } // namespace gpu | 89 } // namespace gpu |
| 92 | 90 |
| 93 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ | 91 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ |
| OLD | NEW |