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 // former WebGraphicsContext3DImpl methods |
64 virtual bool InitializeOnCurrentThread() OVERRIDE; | 64 virtual bool InitializeOnCurrentThread(); |
jamesr
2014/09/26 20:05:40
why is this virtual?
| |
65 | 65 |
66 //---------------------------------------------------------------------- | 66 //---------------------------------------------------------------------- |
67 // WebGraphicsContext3D methods | 67 // WebGraphicsContext3D methods |
68 virtual bool isContextLost(); | 68 virtual bool isContextLost(); |
69 | 69 |
70 virtual WGC3Denum getGraphicsResetStatusARB(); | 70 virtual WGC3Denum getGraphicsResetStatusARB(); |
71 | 71 |
72 ::gpu::ContextSupport* GetContextSupport(); | 72 ::gpu::ContextSupport* GetContextSupport(); |
73 | 73 |
74 ::gpu::gles2::GLES2Implementation* GetImplementation() { | 74 ::gpu::gles2::GLES2Implementation* GetImplementation() { |
(...skipping 27 matching lines...) Expand all Loading... | |
102 // The context we use for OpenGL rendering. | 102 // The context we use for OpenGL rendering. |
103 scoped_ptr< ::gpu::GLInProcessContext> context_; | 103 scoped_ptr< ::gpu::GLInProcessContext> context_; |
104 // The GLES2Implementation we use for OpenGL rendering. | 104 // The GLES2Implementation we use for OpenGL rendering. |
105 ::gpu::gles2::GLES2Implementation* real_gl_; | 105 ::gpu::gles2::GLES2Implementation* real_gl_; |
106 }; | 106 }; |
107 | 107 |
108 } // namespace gpu | 108 } // namespace gpu |
109 } // namespace webkit | 109 } // namespace webkit |
110 | 110 |
111 #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 |