| 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 WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 6 #define WEBKIT_COMMON_GPU_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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> | 54 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> |
| 55 WrapContext( | 55 WrapContext( |
| 56 scoped_ptr< ::gpu::GLInProcessContext> context, | 56 scoped_ptr< ::gpu::GLInProcessContext> context, |
| 57 const blink::WebGraphicsContext3D::Attributes& attributes); | 57 const blink::WebGraphicsContext3D::Attributes& attributes); |
| 58 | 58 |
| 59 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); | 59 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); |
| 60 | 60 |
| 61 size_t GetMappedMemoryLimit(); | 61 size_t GetMappedMemoryLimit(); |
| 62 | 62 |
| 63 // WebGraphicsContext3DImpl methods | 63 bool InitializeOnCurrentThread(); |
| 64 virtual bool InitializeOnCurrentThread() OVERRIDE; | |
| 65 | 64 |
| 66 //---------------------------------------------------------------------- | 65 //---------------------------------------------------------------------- |
| 67 // WebGraphicsContext3D methods | 66 // WebGraphicsContext3D methods |
| 68 virtual bool isContextLost(); | 67 virtual bool isContextLost(); |
| 69 | 68 |
| 70 virtual WGC3Denum getGraphicsResetStatusARB(); | 69 virtual WGC3Denum getGraphicsResetStatusARB(); |
| 71 | 70 |
| 72 ::gpu::ContextSupport* GetContextSupport(); | 71 ::gpu::ContextSupport* GetContextSupport(); |
| 73 | 72 |
| 74 ::gpu::gles2::GLES2Implementation* GetImplementation() { | 73 ::gpu::gles2::GLES2Implementation* GetImplementation() { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 102 // The context we use for OpenGL rendering. | 101 // The context we use for OpenGL rendering. |
| 103 scoped_ptr< ::gpu::GLInProcessContext> context_; | 102 scoped_ptr< ::gpu::GLInProcessContext> context_; |
| 104 // The GLES2Implementation we use for OpenGL rendering. | 103 // The GLES2Implementation we use for OpenGL rendering. |
| 105 ::gpu::gles2::GLES2Implementation* real_gl_; | 104 ::gpu::gles2::GLES2Implementation* real_gl_; |
| 106 }; | 105 }; |
| 107 | 106 |
| 108 } // namespace gpu | 107 } // namespace gpu |
| 109 } // namespace webkit | 108 } // namespace webkit |
| 110 | 109 |
| 111 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL
_H_ | 110 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL
_H_ |
| OLD | NEW |