| 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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 // CHROMIUM_shallow_flush | 482 // CHROMIUM_shallow_flush |
| 483 // Only applies to contexts that use the command buffer. | 483 // Only applies to contexts that use the command buffer. |
| 484 virtual void shallowFlushCHROMIUM() { } | 484 virtual void shallowFlushCHROMIUM() { } |
| 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); |
| 493 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); |
| 494 |
| 492 protected: | 495 protected: |
| 493 virtual GrGLInterface* onCreateGrGLInterface(); | 496 virtual GrGLInterface* onCreateGrGLInterface(); |
| 494 | 497 |
| 495 private: | 498 private: |
| 496 bool Initialize(Attributes attributes); | 499 bool Initialize(Attributes attributes); |
| 497 | 500 |
| 498 // ANGLE related. | 501 // ANGLE related. |
| 499 struct ShaderSourceEntry; | 502 struct ShaderSourceEntry; |
| 500 | 503 |
| 501 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; | 504 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 ShaderSourceMap shader_source_map_; | 563 ShaderSourceMap shader_source_map_; |
| 561 | 564 |
| 562 ShHandle fragment_compiler_; | 565 ShHandle fragment_compiler_; |
| 563 ShHandle vertex_compiler_; | 566 ShHandle vertex_compiler_; |
| 564 }; | 567 }; |
| 565 | 568 |
| 566 } // namespace gpu | 569 } // namespace gpu |
| 567 } // namespace webkit | 570 } // namespace webkit |
| 568 | 571 |
| 569 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ | 572 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ |
| OLD | NEW |