| 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_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> | 50 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> |
| 51 WrapContext( | 51 WrapContext( |
| 52 scoped_ptr< ::gpu::GLInProcessContext> context, | 52 scoped_ptr< ::gpu::GLInProcessContext> context, |
| 53 const blink::WebGraphicsContext3D::Attributes& attributes); | 53 const blink::WebGraphicsContext3D::Attributes& attributes); |
| 54 | 54 |
| 55 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); | 55 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); |
| 56 | 56 |
| 57 size_t GetMappedMemoryLimit(); | 57 size_t GetMappedMemoryLimit(); |
| 58 | 58 |
| 59 bool InitializeOnCurrentThread(); | 59 bool InitializeOnCurrentThread(); |
| 60 void SetLock(base::Lock* lock); |
| 60 | 61 |
| 61 //---------------------------------------------------------------------- | 62 //---------------------------------------------------------------------- |
| 62 // WebGraphicsContext3D methods | 63 // WebGraphicsContext3D methods |
| 63 virtual bool isContextLost(); | 64 virtual bool isContextLost(); |
| 64 | 65 |
| 65 virtual WGC3Denum getGraphicsResetStatusARB(); | 66 virtual WGC3Denum getGraphicsResetStatusARB(); |
| 66 | 67 |
| 67 ::gpu::ContextSupport* GetContextSupport(); | 68 ::gpu::ContextSupport* GetContextSupport(); |
| 68 | 69 |
| 69 ::gpu::gles2::GLES2Implementation* GetImplementation() { | 70 ::gpu::gles2::GLES2Implementation* GetImplementation() { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 96 | 97 |
| 97 // The context we use for OpenGL rendering. | 98 // The context we use for OpenGL rendering. |
| 98 scoped_ptr< ::gpu::GLInProcessContext> context_; | 99 scoped_ptr< ::gpu::GLInProcessContext> context_; |
| 99 // The GLES2Implementation we use for OpenGL rendering. | 100 // The GLES2Implementation we use for OpenGL rendering. |
| 100 ::gpu::gles2::GLES2Implementation* real_gl_; | 101 ::gpu::gles2::GLES2Implementation* real_gl_; |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace gpu_blink | 104 } // namespace gpu_blink |
| 104 | 105 |
| 105 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 106 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |