| 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_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_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/memory/scoped_ptr.h" | 12 #include "base/memory/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/Source/WebKit/chromium/public/WebGraphicsContext3D.
h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D.
h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 15 #include "third_party/WebKit/Source/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 class GLSurface; |
| 22 } | 23 } |
| 23 | 24 |
| 24 using WebKit::WGC3Dchar; | 25 using WebKit::WGC3Dchar; |
| 25 using WebKit::WGC3Denum; | 26 using WebKit::WGC3Denum; |
| 26 using WebKit::WGC3Dboolean; | 27 using WebKit::WGC3Dboolean; |
| 27 using WebKit::WGC3Dbitfield; | 28 using WebKit::WGC3Dbitfield; |
| 28 using WebKit::WGC3Dint; | 29 using WebKit::WGC3Dint; |
| 29 using WebKit::WGC3Dsizei; | 30 using WebKit::WGC3Dsizei; |
| 30 using WebKit::WGC3Duint; | 31 using WebKit::WGC3Duint; |
| 31 using WebKit::WGC3Dfloat; | 32 using WebKit::WGC3Dfloat; |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 | 458 |
| 458 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 459 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
| 459 unsigned char* scanline_; | 460 unsigned char* scanline_; |
| 460 #endif | 461 #endif |
| 461 | 462 |
| 462 // Errors raised by synthesizeGLError(). | 463 // Errors raised by synthesizeGLError(). |
| 463 std::list<WGC3Denum> synthetic_errors_list_; | 464 std::list<WGC3Denum> synthetic_errors_list_; |
| 464 std::set<WGC3Denum> synthetic_errors_set_; | 465 std::set<WGC3Denum> synthetic_errors_set_; |
| 465 | 466 |
| 466 scoped_ptr<gfx::GLContext> gl_context_; | 467 scoped_ptr<gfx::GLContext> gl_context_; |
| 468 scoped_ptr<gfx::GLSurface> gl_surface_; |
| 467 | 469 |
| 468 ShaderSourceMap shader_source_map_; | 470 ShaderSourceMap shader_source_map_; |
| 469 | 471 |
| 470 ShHandle fragment_compiler_; | 472 ShHandle fragment_compiler_; |
| 471 ShHandle vertex_compiler_; | 473 ShHandle vertex_compiler_; |
| 472 }; | 474 }; |
| 473 | 475 |
| 474 } // namespace gpu | 476 } // namespace gpu |
| 475 } // namespace webkit | 477 } // namespace webkit |
| 476 | 478 |
| 477 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 479 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 478 | 480 |
| OLD | NEW |