| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
| 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // requires the sandbox to be disabled, which is strongly discouraged. | 50 // requires the sandbox to be disabled, which is strongly discouraged. |
| 51 // It is provided for support of test_shell and any Chromium ports | 51 // It is provided for support of test_shell and any Chromium ports |
| 52 // where an in-renderer WebGL implementation would be helpful. | 52 // where an in-renderer WebGL implementation would be helpful. |
| 53 | 53 |
| 54 class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D { | 54 class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D { |
| 55 public: | 55 public: |
| 56 // Creates a WebGraphicsContext3DInProcessImpl for a given window. If window | 56 // Creates a WebGraphicsContext3DInProcessImpl for a given window. If window |
| 57 // is gfx::kNullPluginWindow, then it creates an offscreen context. | 57 // is gfx::kNullPluginWindow, then it creates an offscreen context. |
| 58 // share_group is the group this context shares namespaces with. It's only | 58 // share_group is the group this context shares namespaces with. It's only |
| 59 // used for window-bound countexts. | 59 // used for window-bound countexts. |
| 60 WebGraphicsContext3DInProcessImpl(gfx::PluginWindowHandle window, | 60 WebGraphicsContext3DInProcessImpl(gfx::AcceleratedWidget window, |
| 61 gfx::GLShareGroup* share_group); | 61 gfx::GLShareGroup* share_group); |
| 62 virtual ~WebGraphicsContext3DInProcessImpl(); | 62 virtual ~WebGraphicsContext3DInProcessImpl(); |
| 63 | 63 |
| 64 //---------------------------------------------------------------------- | 64 //---------------------------------------------------------------------- |
| 65 // WebGraphicsContext3D methods | 65 // WebGraphicsContext3D methods |
| 66 virtual bool initialize( | 66 virtual bool initialize( |
| 67 WebGraphicsContext3D::Attributes attributes, WebView*, bool); | 67 WebGraphicsContext3D::Attributes attributes, WebView*, bool); |
| 68 virtual bool makeContextCurrent(); | 68 virtual bool makeContextCurrent(); |
| 69 | 69 |
| 70 virtual int width(); | 70 virtual int width(); |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 std::list<WGC3Denum> synthetic_errors_list_; | 515 std::list<WGC3Denum> synthetic_errors_list_; |
| 516 std::set<WGC3Denum> synthetic_errors_set_; | 516 std::set<WGC3Denum> synthetic_errors_set_; |
| 517 | 517 |
| 518 scoped_refptr<gfx::GLContext> gl_context_; | 518 scoped_refptr<gfx::GLContext> gl_context_; |
| 519 scoped_refptr<gfx::GLSurface> gl_surface_; | 519 scoped_refptr<gfx::GLSurface> gl_surface_; |
| 520 | 520 |
| 521 ShaderSourceMap shader_source_map_; | 521 ShaderSourceMap shader_source_map_; |
| 522 | 522 |
| 523 ShHandle fragment_compiler_; | 523 ShHandle fragment_compiler_; |
| 524 ShHandle vertex_compiler_; | 524 ShHandle vertex_compiler_; |
| 525 gfx::PluginWindowHandle window_; | 525 gfx::AcceleratedWidget window_; |
| 526 scoped_refptr<gfx::GLShareGroup> share_group_; | 526 scoped_refptr<gfx::GLShareGroup> share_group_; |
| 527 }; | 527 }; |
| 528 | 528 |
| 529 } // namespace gpu | 529 } // namespace gpu |
| 530 } // namespace webkit | 530 } // namespace webkit |
| 531 | 531 |
| 532 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 532 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
| OLD | NEW |