| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 blink::WGC3Dsizei count) override; | 137 blink::WGC3Dsizei count) override; |
| 138 void drawElements(blink::WGC3Denum mode, | 138 void drawElements(blink::WGC3Denum mode, |
| 139 blink::WGC3Dsizei count, | 139 blink::WGC3Dsizei count, |
| 140 blink::WGC3Denum type, | 140 blink::WGC3Denum type, |
| 141 blink::WGC3Dintptr offset) override; | 141 blink::WGC3Dintptr offset) override; |
| 142 | 142 |
| 143 void enable(blink::WGC3Denum cap) override; | 143 void enable(blink::WGC3Denum cap) override; |
| 144 void enableVertexAttribArray(blink::WGC3Duint index) override; | 144 void enableVertexAttribArray(blink::WGC3Duint index) override; |
| 145 void finish() override; | 145 void finish() override; |
| 146 void flush() override; | 146 void flush() override; |
| 147 void framebufferRenderbuffer(blink::WGC3Denum target, | |
| 148 blink::WGC3Denum attachment, | |
| 149 blink::WGC3Denum renderbuffertarget, | |
| 150 blink::WebGLId renderbuffer) override; | |
| 151 void framebufferTexture2D(blink::WGC3Denum target, | |
| 152 blink::WGC3Denum attachment, | |
| 153 blink::WGC3Denum textarget, | |
| 154 blink::WebGLId texture, | |
| 155 blink::WGC3Dint level) override; | |
| 156 void frontFace(blink::WGC3Denum mode) override; | 147 void frontFace(blink::WGC3Denum mode) override; |
| 157 void generateMipmap(blink::WGC3Denum target) override; | 148 void generateMipmap(blink::WGC3Denum target) override; |
| 158 | 149 |
| 159 bool getActiveAttrib(blink::WebGLId program, | 150 bool getActiveAttrib(blink::WebGLId program, |
| 160 blink::WGC3Duint index, | 151 blink::WGC3Duint index, |
| 161 ActiveInfo&) override; | 152 ActiveInfo&) override; |
| 162 bool getActiveUniform(blink::WebGLId program, | 153 bool getActiveUniform(blink::WebGLId program, |
| 163 blink::WGC3Duint index, | 154 blink::WGC3Duint index, |
| 164 ActiveInfo&) override; | 155 ActiveInfo&) override; |
| 165 | 156 |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 void deleteTransformFeedback(blink::WebGLId transformfeedback) override; | 669 void deleteTransformFeedback(blink::WebGLId transformfeedback) override; |
| 679 void drawRangeElements(blink::WGC3Denum mode, | 670 void drawRangeElements(blink::WGC3Denum mode, |
| 680 blink::WGC3Duint start, | 671 blink::WGC3Duint start, |
| 681 blink::WGC3Duint end, | 672 blink::WGC3Duint end, |
| 682 blink::WGC3Dsizei count, | 673 blink::WGC3Dsizei count, |
| 683 blink::WGC3Denum type, | 674 blink::WGC3Denum type, |
| 684 blink::WGC3Dintptr offset) override; | 675 blink::WGC3Dintptr offset) override; |
| 685 void endTransformFeedback(void) override; | 676 void endTransformFeedback(void) override; |
| 686 blink::WGC3Dsync fenceSync(blink::WGC3Denum condition, | 677 blink::WGC3Dsync fenceSync(blink::WGC3Denum condition, |
| 687 blink::WGC3Dbitfield flags) override; | 678 blink::WGC3Dbitfield flags) override; |
| 688 void framebufferTextureLayer(blink::WGC3Denum target, | |
| 689 blink::WGC3Denum attachment, | |
| 690 blink::WGC3Duint texture, | |
| 691 blink::WGC3Dint level, | |
| 692 blink::WGC3Dint layer) override; | |
| 693 void getActiveUniformBlockName(blink::WGC3Duint program, | 679 void getActiveUniformBlockName(blink::WGC3Duint program, |
| 694 blink::WGC3Duint uniformBlockIndex, | 680 blink::WGC3Duint uniformBlockIndex, |
| 695 blink::WGC3Dsizei bufSize, | 681 blink::WGC3Dsizei bufSize, |
| 696 blink::WGC3Dsizei* length, | 682 blink::WGC3Dsizei* length, |
| 697 blink::WGC3Dchar* uniformBlockName) override; | 683 blink::WGC3Dchar* uniformBlockName) override; |
| 698 void getActiveUniformBlockiv(blink::WGC3Duint program, | 684 void getActiveUniformBlockiv(blink::WGC3Duint program, |
| 699 blink::WGC3Duint uniformBlockIndex, | 685 blink::WGC3Duint uniformBlockIndex, |
| 700 blink::WGC3Denum pname, | 686 blink::WGC3Denum pname, |
| 701 blink::WGC3Dint* params) override; | 687 blink::WGC3Dint* params) override; |
| 702 void getActiveUniformsiv(blink::WGC3Duint program, | 688 void getActiveUniformsiv(blink::WGC3Duint program, |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 // Errors raised by synthesizeGLError(). | 906 // Errors raised by synthesizeGLError(). |
| 921 std::vector<blink::WGC3Denum> synthetic_errors_; | 907 std::vector<blink::WGC3Denum> synthetic_errors_; |
| 922 | 908 |
| 923 ::gpu::gles2::GLES2Interface* gl_; | 909 ::gpu::gles2::GLES2Interface* gl_; |
| 924 bool lose_context_when_out_of_memory_; | 910 bool lose_context_when_out_of_memory_; |
| 925 }; | 911 }; |
| 926 | 912 |
| 927 } // namespace gpu_blink | 913 } // namespace gpu_blink |
| 928 | 914 |
| 929 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 915 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
| OLD | NEW |