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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 | 485 |
486 virtual void genMailboxCHROMIUM(WGC3Dbyte* mailbox); | 486 virtual void genMailboxCHROMIUM(WGC3Dbyte* mailbox); |
487 virtual void produceTextureCHROMIUM(WGC3Denum target, | 487 virtual void produceTextureCHROMIUM(WGC3Denum target, |
488 const WGC3Dbyte* mailbox); | 488 const WGC3Dbyte* mailbox); |
489 virtual void consumeTextureCHROMIUM(WGC3Denum target, | 489 virtual void consumeTextureCHROMIUM(WGC3Denum target, |
490 const WGC3Dbyte* mailbox); | 490 const WGC3Dbyte* mailbox); |
491 | 491 |
492 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); | 492 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); |
493 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); | 493 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); |
494 | 494 |
| 495 virtual void* mapBufferCHROMIUM(WGC3Denum target, WGC3Denum access); |
| 496 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target); |
| 497 |
495 protected: | 498 protected: |
496 virtual GrGLInterface* onCreateGrGLInterface(); | 499 virtual GrGLInterface* onCreateGrGLInterface(); |
497 | 500 |
498 private: | 501 private: |
499 bool Initialize(Attributes attributes); | 502 bool Initialize(Attributes attributes); |
500 | 503 |
501 // ANGLE related. | 504 // ANGLE related. |
502 struct ShaderSourceEntry; | 505 struct ShaderSourceEntry; |
503 | 506 |
504 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; | 507 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 ShaderSourceMap shader_source_map_; | 568 ShaderSourceMap shader_source_map_; |
566 | 569 |
567 ShHandle fragment_compiler_; | 570 ShHandle fragment_compiler_; |
568 ShHandle vertex_compiler_; | 571 ShHandle vertex_compiler_; |
569 }; | 572 }; |
570 | 573 |
571 } // namespace gpu | 574 } // namespace gpu |
572 } // namespace webkit | 575 } // namespace webkit |
573 | 576 |
574 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 577 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
OLD | NEW |