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 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 392 |
393 virtual void deleteBuffer(WebGLId); | 393 virtual void deleteBuffer(WebGLId); |
394 virtual void deleteFramebuffer(WebGLId); | 394 virtual void deleteFramebuffer(WebGLId); |
395 virtual void deleteProgram(WebGLId); | 395 virtual void deleteProgram(WebGLId); |
396 virtual void deleteRenderbuffer(WebGLId); | 396 virtual void deleteRenderbuffer(WebGLId); |
397 virtual void deleteShader(WebGLId); | 397 virtual void deleteShader(WebGLId); |
398 virtual void deleteTexture(WebGLId); | 398 virtual void deleteTexture(WebGLId); |
399 | 399 |
400 private: | 400 private: |
401 // ANGLE related. | 401 // ANGLE related. |
402 struct ShaderSourceEntry { | 402 struct ShaderSourceEntry; |
403 explicit ShaderSourceEntry(WGC3Denum shader_type) | |
404 : type(shader_type), | |
405 is_valid(false) { | |
406 } | |
407 | |
408 WGC3Denum type; | |
409 scoped_array<char> source; | |
410 scoped_array<char> log; | |
411 scoped_array<char> translated_source; | |
412 bool is_valid; | |
413 }; | |
414 | 403 |
415 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; | 404 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; |
416 | 405 |
417 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 406 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
418 void FlipVertically(unsigned char* framebuffer, | 407 void FlipVertically(unsigned char* framebuffer, |
419 unsigned int width, | 408 unsigned int width, |
420 unsigned int height); | 409 unsigned int height); |
421 #endif | 410 #endif |
422 | 411 |
423 // Take into account the user's requested context creation attributes, in | 412 // Take into account the user's requested context creation attributes, in |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 | 463 |
475 ShHandle fragment_compiler_; | 464 ShHandle fragment_compiler_; |
476 ShHandle vertex_compiler_; | 465 ShHandle vertex_compiler_; |
477 }; | 466 }; |
478 | 467 |
479 } // namespace gpu | 468 } // namespace gpu |
480 } // namespace webkit | 469 } // namespace webkit |
481 | 470 |
482 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 471 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
483 | 472 |
OLD | NEW |