| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 const blink::WebGraphicsContext3D::Attributes& attributes, | 47 const blink::WebGraphicsContext3D::Attributes& attributes, |
| 48 bool lose_context_when_out_of_memory); | 48 bool lose_context_when_out_of_memory); |
| 49 | 49 |
| 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 // WebGraphicsContext3DImpl methods |
| 58 virtual bool BindToCurrentThread() OVERRIDE; |
| 59 |
| 57 //---------------------------------------------------------------------- | 60 //---------------------------------------------------------------------- |
| 58 // WebGraphicsContext3D methods | 61 // WebGraphicsContext3D methods |
| 59 virtual bool makeContextCurrent(); | |
| 60 | |
| 61 virtual bool isContextLost(); | 62 virtual bool isContextLost(); |
| 62 | 63 |
| 63 virtual WGC3Denum getGraphicsResetStatusARB(); | 64 virtual WGC3Denum getGraphicsResetStatusARB(); |
| 64 | 65 |
| 65 ::gpu::ContextSupport* GetContextSupport(); | 66 ::gpu::ContextSupport* GetContextSupport(); |
| 66 | 67 |
| 67 ::gpu::gles2::GLES2Implementation* GetImplementation() { | 68 ::gpu::gles2::GLES2Implementation* GetImplementation() { |
| 68 return real_gl_; | 69 return real_gl_; |
| 69 } | 70 } |
| 70 | 71 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 95 // The context we use for OpenGL rendering. | 96 // The context we use for OpenGL rendering. |
| 96 scoped_ptr< ::gpu::GLInProcessContext> context_; | 97 scoped_ptr< ::gpu::GLInProcessContext> context_; |
| 97 // The GLES2Implementation we use for OpenGL rendering. | 98 // The GLES2Implementation we use for OpenGL rendering. |
| 98 ::gpu::gles2::GLES2Implementation* real_gl_; | 99 ::gpu::gles2::GLES2Implementation* real_gl_; |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace gpu | 102 } // namespace gpu |
| 102 } // namespace webkit | 103 } // namespace webkit |
| 103 | 104 |
| 104 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL
_H_ | 105 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL
_H_ |
| OLD | NEW |