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 GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 virtual blink::WGC3Dboolean isQueryEXT(blink::WGC3Duint query); | 511 virtual blink::WGC3Dboolean isQueryEXT(blink::WGC3Duint query); |
512 virtual void beginQueryEXT(blink::WGC3Denum target, blink::WebGLId query); | 512 virtual void beginQueryEXT(blink::WGC3Denum target, blink::WebGLId query); |
513 virtual void endQueryEXT(blink::WGC3Denum target); | 513 virtual void endQueryEXT(blink::WGC3Denum target); |
514 virtual void getQueryivEXT(blink::WGC3Denum target, | 514 virtual void getQueryivEXT(blink::WGC3Denum target, |
515 blink::WGC3Denum pname, | 515 blink::WGC3Denum pname, |
516 blink::WGC3Dint* params); | 516 blink::WGC3Dint* params); |
517 virtual void getQueryObjectuivEXT(blink::WebGLId query, | 517 virtual void getQueryObjectuivEXT(blink::WebGLId query, |
518 blink::WGC3Denum pname, | 518 blink::WGC3Denum pname, |
519 blink::WGC3Duint* params); | 519 blink::WGC3Duint* params); |
520 | 520 |
521 // TODO(zmo): Remove the following two functions when blink side switch | |
522 // over to the correct version. | |
523 void copyTextureCHROMIUM(blink::WGC3Denum target, | |
524 blink::WebGLId source_id, | |
525 blink::WebGLId dest_id, | |
526 blink::WGC3Denum internal_format, | |
527 blink::WGC3Denum dest_type); | |
528 | |
529 void copySubTextureCHROMIUM(blink::WGC3Denum target, | |
530 blink::WebGLId source_id, | |
531 blink::WebGLId dest_id, | |
532 blink::WGC3Dint xoffset, | |
533 blink::WGC3Dint yoffset, | |
534 blink::WGC3Dint x, | |
535 blink::WGC3Dint y, | |
536 blink::WGC3Dsizei width, | |
537 blink::WGC3Dsizei height); | |
538 | |
539 void copyTextureCHROMIUM( | 521 void copyTextureCHROMIUM( |
540 blink::WGC3Denum target, | 522 blink::WGC3Denum target, |
541 blink::WebGLId source_id, | 523 blink::WebGLId source_id, |
542 blink::WebGLId dest_id, | 524 blink::WebGLId dest_id, |
543 blink::WGC3Denum internal_format, | 525 blink::WGC3Denum internal_format, |
544 blink::WGC3Denum dest_type, | 526 blink::WGC3Denum dest_type, |
545 blink::WGC3Dboolean unpack_flip_y, | 527 blink::WGC3Dboolean unpack_flip_y, |
546 blink::WGC3Dboolean unpack_premultiply_alpha, | 528 blink::WGC3Dboolean unpack_premultiply_alpha, |
547 blink::WGC3Dboolean unpack_unmultiply_alpha); | 529 blink::WGC3Dboolean unpack_unmultiply_alpha) override; |
548 | 530 |
549 void copySubTextureCHROMIUM( | 531 void copySubTextureCHROMIUM( |
550 blink::WGC3Denum target, | 532 blink::WGC3Denum target, |
551 blink::WebGLId source_id, | 533 blink::WebGLId source_id, |
552 blink::WebGLId dest_id, | 534 blink::WebGLId dest_id, |
553 blink::WGC3Dint xoffset, | 535 blink::WGC3Dint xoffset, |
554 blink::WGC3Dint yoffset, | 536 blink::WGC3Dint yoffset, |
555 blink::WGC3Dint x, | 537 blink::WGC3Dint x, |
556 blink::WGC3Dint y, | 538 blink::WGC3Dint y, |
557 blink::WGC3Dsizei width, | 539 blink::WGC3Dsizei width, |
558 blink::WGC3Dsizei height, | 540 blink::WGC3Dsizei height, |
559 blink::WGC3Dboolean unpack_flip_y, | 541 blink::WGC3Dboolean unpack_flip_y, |
560 blink::WGC3Dboolean unpack_premultiply_alpha, | 542 blink::WGC3Dboolean unpack_premultiply_alpha, |
561 blink::WGC3Dboolean unpack_unmultiply_alpha); | 543 blink::WGC3Dboolean unpack_unmultiply_alpha) override; |
562 | 544 |
563 virtual void bindUniformLocationCHROMIUM(blink::WebGLId program, | 545 virtual void bindUniformLocationCHROMIUM(blink::WebGLId program, |
564 blink::WGC3Dint location, | 546 blink::WGC3Dint location, |
565 const blink::WGC3Dchar* uniform); | 547 const blink::WGC3Dchar* uniform); |
566 | 548 |
567 virtual void shallowFlushCHROMIUM(); | 549 virtual void shallowFlushCHROMIUM(); |
568 virtual void shallowFinishCHROMIUM(); | 550 virtual void shallowFinishCHROMIUM(); |
569 | 551 |
570 virtual void genMailboxCHROMIUM(blink::WGC3Dbyte* mailbox); | 552 virtual void genMailboxCHROMIUM(blink::WGC3Dbyte* mailbox); |
571 virtual void produceTextureCHROMIUM(blink::WGC3Denum target, | 553 virtual void produceTextureCHROMIUM(blink::WGC3Denum target, |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 std::vector<blink::WGC3Denum> synthetic_errors_; | 976 std::vector<blink::WGC3Denum> synthetic_errors_; |
995 | 977 |
996 ::gpu::gles2::GLES2Interface* gl_; | 978 ::gpu::gles2::GLES2Interface* gl_; |
997 bool lose_context_when_out_of_memory_; | 979 bool lose_context_when_out_of_memory_; |
998 uint32_t flush_id_; | 980 uint32_t flush_id_; |
999 }; | 981 }; |
1000 | 982 |
1001 } // namespace gpu_blink | 983 } // namespace gpu_blink |
1002 | 984 |
1003 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 985 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
OLD | NEW |