| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 namespace gpu { | 27 namespace gpu { |
| 28 class GLInProcessContext; | 28 class GLInProcessContext; |
| 29 struct GLInProcessContextAttribs; | 29 struct GLInProcessContextAttribs; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace webkit { | 32 namespace webkit { |
| 33 namespace gpu { | 33 namespace gpu { |
| 34 | 34 |
| 35 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl | 35 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl |
| 36 : public content::WebGraphicsContext3DImpl { | 36 : public WebGraphicsContext3DImpl { |
| 37 public: | 37 public: |
| 38 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> | 38 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> |
| 39 CreateViewContext( | 39 CreateViewContext( |
| 40 const blink::WebGraphicsContext3D::Attributes& attributes, | 40 const blink::WebGraphicsContext3D::Attributes& attributes, |
| 41 bool lose_context_when_out_of_memory, | 41 bool lose_context_when_out_of_memory, |
| 42 gfx::AcceleratedWidget window); | 42 gfx::AcceleratedWidget window); |
| 43 | 43 |
| 44 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> | 44 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> |
| 45 CreateOffscreenContext( | 45 CreateOffscreenContext( |
| 46 const blink::WebGraphicsContext3D::Attributes& attributes, | 46 const blink::WebGraphicsContext3D::Attributes& attributes, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // The context we use for OpenGL rendering. | 96 // The context we use for OpenGL rendering. |
| 97 scoped_ptr< ::gpu::GLInProcessContext> context_; | 97 scoped_ptr< ::gpu::GLInProcessContext> context_; |
| 98 // The GLES2Implementation we use for OpenGL rendering. | 98 // The GLES2Implementation we use for OpenGL rendering. |
| 99 ::gpu::gles2::GLES2Implementation* real_gl_; | 99 ::gpu::gles2::GLES2Implementation* real_gl_; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace gpu | 102 } // namespace gpu |
| 103 } // namespace webkit | 103 } // namespace webkit |
| 104 | 104 |
| 105 #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 |