OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
11 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "third_party/angle/include/GLSLANG/ShaderLang.h" | 13 #include "third_party/angle/include/GLSLANG/ShaderLang.h" |
14 #include "third_party/WebKit/WebKit/chromium/public/WebGraphicsContext3D.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebGraphicsContext3D.h" |
15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
16 | 16 |
17 #if !defined(OS_MACOSX) | 17 #if !defined(OS_MACOSX) |
18 #define FLIP_FRAMEBUFFER_VERTICALLY | 18 #define FLIP_FRAMEBUFFER_VERTICALLY |
19 #endif | 19 #endif |
20 namespace gfx { | 20 namespace gfx { |
21 class GLContext; | 21 class GLContext; |
22 } | 22 } |
23 | 23 |
24 namespace webkit_gpu { | 24 namespace webkit { |
| 25 namespace gpu { |
25 | 26 |
26 // The default implementation of WebGL. In Chromium, using this class | 27 // The default implementation of WebGL. In Chromium, using this class |
27 // requires the sandbox to be disabled, which is strongly discouraged. | 28 // requires the sandbox to be disabled, which is strongly discouraged. |
28 // It is provided for support of test_shell and any Chromium ports | 29 // It is provided for support of test_shell and any Chromium ports |
29 // where an in-renderer WebGL implementation would be helpful. | 30 // where an in-renderer WebGL implementation would be helpful. |
30 | 31 |
31 class WebGraphicsContext3DInProcessImpl : public WebKit::WebGraphicsContext3D { | 32 class WebGraphicsContext3DInProcessImpl : public WebKit::WebGraphicsContext3D { |
32 public: | 33 public: |
33 WebGraphicsContext3DInProcessImpl(); | 34 WebGraphicsContext3DInProcessImpl(); |
34 virtual ~WebGraphicsContext3DInProcessImpl(); | 35 virtual ~WebGraphicsContext3DInProcessImpl(); |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 std::set<unsigned long> synthetic_errors_set_; | 459 std::set<unsigned long> synthetic_errors_set_; |
459 | 460 |
460 scoped_ptr<gfx::GLContext> gl_context_; | 461 scoped_ptr<gfx::GLContext> gl_context_; |
461 | 462 |
462 ShaderSourceMap shader_source_map_; | 463 ShaderSourceMap shader_source_map_; |
463 | 464 |
464 ShHandle fragment_compiler_; | 465 ShHandle fragment_compiler_; |
465 ShHandle vertex_compiler_; | 466 ShHandle vertex_compiler_; |
466 }; | 467 }; |
467 | 468 |
468 } // namespace webkit_gpu | 469 } // namespace gpu |
| 470 } // namespace webkit |
469 | 471 |
470 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 472 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
471 | 473 |
OLD | NEW |