| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void SetLock(base::Lock* lock); |
| 61 | 61 |
| 62 //---------------------------------------------------------------------- | 62 //---------------------------------------------------------------------- |
| 63 // WebGraphicsContext3D methods | 63 // WebGraphicsContext3D methods |
| 64 virtual bool isContextLost(); | 64 virtual bool isContextLost(); |
| 65 | 65 |
| 66 virtual WGC3Denum getGraphicsResetStatusARB(); | 66 virtual blink::WGC3Denum getGraphicsResetStatusARB(); |
| 67 | 67 |
| 68 ::gpu::ContextSupport* GetContextSupport(); | 68 ::gpu::ContextSupport* GetContextSupport(); |
| 69 | 69 |
| 70 ::gpu::gles2::GLES2Implementation* GetImplementation() { | 70 ::gpu::gles2::GLES2Implementation* GetImplementation() { |
| 71 return real_gl_; | 71 return real_gl_; |
| 72 } | 72 } |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 WebGraphicsContext3DInProcessCommandBufferImpl( | 75 WebGraphicsContext3DInProcessCommandBufferImpl( |
| 76 scoped_ptr< ::gpu::GLInProcessContext> context, | 76 scoped_ptr< ::gpu::GLInProcessContext> context, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 97 | 97 |
| 98 // The context we use for OpenGL rendering. | 98 // The context we use for OpenGL rendering. |
| 99 scoped_ptr< ::gpu::GLInProcessContext> context_; | 99 scoped_ptr< ::gpu::GLInProcessContext> context_; |
| 100 // The GLES2Implementation we use for OpenGL rendering. | 100 // The GLES2Implementation we use for OpenGL rendering. |
| 101 ::gpu::gles2::GLES2Implementation* real_gl_; | 101 ::gpu::gles2::GLES2Implementation* real_gl_; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace gpu_blink | 104 } // namespace gpu_blink |
| 105 | 105 |
| 106 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 106 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |