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_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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 const WGC3Dbyte* mailbox); | 492 const WGC3Dbyte* mailbox); |
493 virtual void consumeTextureCHROMIUM(WGC3Denum target, | 493 virtual void consumeTextureCHROMIUM(WGC3Denum target, |
494 const WGC3Dbyte* mailbox); | 494 const WGC3Dbyte* mailbox); |
495 | 495 |
496 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); | 496 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); |
497 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); | 497 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); |
498 | 498 |
499 virtual void* mapBufferCHROMIUM(WGC3Denum target, WGC3Denum access); | 499 virtual void* mapBufferCHROMIUM(WGC3Denum target, WGC3Denum access); |
500 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target); | 500 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target); |
501 | 501 |
| 502 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs); |
| 503 |
502 protected: | 504 protected: |
503 virtual GrGLInterface* onCreateGrGLInterface(); | 505 virtual GrGLInterface* onCreateGrGLInterface(); |
504 | 506 |
505 private: | 507 private: |
506 bool Initialize(Attributes attributes); | 508 bool Initialize(Attributes attributes); |
507 | 509 |
508 // ANGLE related. | 510 // ANGLE related. |
509 struct ShaderSourceEntry; | 511 struct ShaderSourceEntry; |
510 | 512 |
511 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; | 513 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 ShaderSourceMap shader_source_map_; | 574 ShaderSourceMap shader_source_map_; |
573 | 575 |
574 ShHandle fragment_compiler_; | 576 ShHandle fragment_compiler_; |
575 ShHandle vertex_compiler_; | 577 ShHandle vertex_compiler_; |
576 }; | 578 }; |
577 | 579 |
578 } // namespace gpu | 580 } // namespace gpu |
579 } // namespace webkit | 581 } // namespace webkit |
580 | 582 |
581 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 583 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
OLD | NEW |