| 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 |
| 64 virtual bool InitializeOnCurrentThread() OVERRIDE; |
| 65 |
| 63 //---------------------------------------------------------------------- | 66 //---------------------------------------------------------------------- |
| 64 // WebGraphicsContext3D methods | 67 // WebGraphicsContext3D methods |
| 65 virtual bool makeContextCurrent(); | |
| 66 | |
| 67 virtual bool isContextLost(); | 68 virtual bool isContextLost(); |
| 68 | 69 |
| 69 virtual WGC3Denum getGraphicsResetStatusARB(); | 70 virtual WGC3Denum getGraphicsResetStatusARB(); |
| 70 | 71 |
| 71 ::gpu::ContextSupport* GetContextSupport(); | 72 ::gpu::ContextSupport* GetContextSupport(); |
| 72 | 73 |
| 73 ::gpu::gles2::GLES2Implementation* GetImplementation() { | 74 ::gpu::gles2::GLES2Implementation* GetImplementation() { |
| 74 return real_gl_; | 75 return real_gl_; |
| 75 } | 76 } |
| 76 | 77 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 101 // The context we use for OpenGL rendering. | 102 // The context we use for OpenGL rendering. |
| 102 scoped_ptr< ::gpu::GLInProcessContext> context_; | 103 scoped_ptr< ::gpu::GLInProcessContext> context_; |
| 103 // The GLES2Implementation we use for OpenGL rendering. | 104 // The GLES2Implementation we use for OpenGL rendering. |
| 104 ::gpu::gles2::GLES2Implementation* real_gl_; | 105 ::gpu::gles2::GLES2Implementation* real_gl_; |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace gpu | 108 } // namespace gpu |
| 108 } // namespace webkit | 109 } // namespace webkit |
| 109 | 110 |
| 110 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL
_H_ | 111 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL
_H_ |
| OLD | NEW |