OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 WebGL2RenderingContextBase_h | 5 #ifndef WebGL2RenderingContextBase_h |
6 #define WebGL2RenderingContextBase_h | 6 #define WebGL2RenderingContextBase_h |
7 | 7 |
8 #include "bindings/core/v8/TraceWrapperMember.h" | 8 #include "bindings/core/v8/TraceWrapperMember.h" |
9 #include "modules/webgl/WebGLExtension.h" | 9 #include "modules/webgl/WebGLExtension.h" |
10 #include "modules/webgl/WebGLRenderingContextBase.h" | 10 #include "modules/webgl/WebGLRenderingContextBase.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 GLintptr); | 94 GLintptr); |
95 void texImage2D(GLenum, | 95 void texImage2D(GLenum, |
96 GLint, | 96 GLint, |
97 GLint, | 97 GLint, |
98 GLsizei, | 98 GLsizei, |
99 GLsizei, | 99 GLsizei, |
100 GLint, | 100 GLint, |
101 GLenum, | 101 GLenum, |
102 GLenum, | 102 GLenum, |
103 ImageData*); | 103 ImageData*); |
104 void texImage2D(GLenum, | 104 void texImage2D(ExecutionContext*, |
| 105 GLenum, |
105 GLint, | 106 GLint, |
106 GLint, | 107 GLint, |
107 GLsizei, | 108 GLsizei, |
108 GLsizei, | 109 GLsizei, |
109 GLint, | 110 GLint, |
110 GLenum, | 111 GLenum, |
111 GLenum, | 112 GLenum, |
112 HTMLImageElement*, | 113 HTMLImageElement*, |
113 ExceptionState&); | 114 ExceptionState&); |
114 void texImage2D(GLenum, | 115 void texImage2D(ExecutionContext*, |
| 116 GLenum, |
115 GLint, | 117 GLint, |
116 GLint, | 118 GLint, |
117 GLsizei, | 119 GLsizei, |
118 GLsizei, | 120 GLsizei, |
119 GLint, | 121 GLint, |
120 GLenum, | 122 GLenum, |
121 GLenum, | 123 GLenum, |
122 HTMLCanvasElement*, | 124 HTMLCanvasElement*, |
123 ExceptionState&); | 125 ExceptionState&); |
124 void texImage2D(GLenum, | 126 void texImage2D(ExecutionContext*, |
| 127 GLenum, |
125 GLint, | 128 GLint, |
126 GLint, | 129 GLint, |
127 GLsizei, | 130 GLsizei, |
128 GLsizei, | 131 GLsizei, |
129 GLint, | 132 GLint, |
130 GLenum, | 133 GLenum, |
131 GLenum, | 134 GLenum, |
132 HTMLVideoElement*, | 135 HTMLVideoElement*, |
133 ExceptionState&); | 136 ExceptionState&); |
134 void texImage2D(GLenum, | 137 void texImage2D(GLenum, |
(...skipping 28 matching lines...) Expand all Loading... |
163 GLintptr); | 166 GLintptr); |
164 void texSubImage2D(GLenum, | 167 void texSubImage2D(GLenum, |
165 GLint, | 168 GLint, |
166 GLint, | 169 GLint, |
167 GLint, | 170 GLint, |
168 GLsizei, | 171 GLsizei, |
169 GLsizei, | 172 GLsizei, |
170 GLenum, | 173 GLenum, |
171 GLenum, | 174 GLenum, |
172 ImageData*); | 175 ImageData*); |
173 void texSubImage2D(GLenum, | 176 void texSubImage2D(ExecutionContext*, |
| 177 GLenum, |
174 GLint, | 178 GLint, |
175 GLint, | 179 GLint, |
176 GLint, | 180 GLint, |
177 GLsizei, | 181 GLsizei, |
178 GLsizei, | 182 GLsizei, |
179 GLenum, | 183 GLenum, |
180 GLenum, | 184 GLenum, |
181 HTMLImageElement*, | 185 HTMLImageElement*, |
182 ExceptionState&); | 186 ExceptionState&); |
183 void texSubImage2D(GLenum, | 187 void texSubImage2D(ExecutionContext*, |
| 188 GLenum, |
184 GLint, | 189 GLint, |
185 GLint, | 190 GLint, |
186 GLint, | 191 GLint, |
187 GLsizei, | 192 GLsizei, |
188 GLsizei, | 193 GLsizei, |
189 GLenum, | 194 GLenum, |
190 GLenum, | 195 GLenum, |
191 HTMLCanvasElement*, | 196 HTMLCanvasElement*, |
192 ExceptionState&); | 197 ExceptionState&); |
193 void texSubImage2D(GLenum, | 198 void texSubImage2D(ExecutionContext*, |
| 199 GLenum, |
194 GLint, | 200 GLint, |
195 GLint, | 201 GLint, |
196 GLint, | 202 GLint, |
197 GLsizei, | 203 GLsizei, |
198 GLsizei, | 204 GLsizei, |
199 GLenum, | 205 GLenum, |
200 GLenum, | 206 GLenum, |
201 HTMLVideoElement*, | 207 HTMLVideoElement*, |
202 ExceptionState&); | 208 ExceptionState&); |
203 void texSubImage2D(GLenum, | 209 void texSubImage2D(GLenum, |
(...skipping 14 matching lines...) Expand all Loading... |
218 GLsizei, | 224 GLsizei, |
219 GLenum, | 225 GLenum, |
220 GLenum, | 226 GLenum, |
221 DOMArrayBufferView*, | 227 DOMArrayBufferView*, |
222 GLuint); | 228 GLuint); |
223 | 229 |
224 // Have to re-declare/re-define the following tex{Sub}Image2D functions from | 230 // Have to re-declare/re-define the following tex{Sub}Image2D functions from |
225 // base class. This is because the above tex{Sub}Image2D() hides the name | 231 // base class. This is because the above tex{Sub}Image2D() hides the name |
226 // from base class. | 232 // from base class. |
227 void texImage2D(GLenum, GLint, GLint, GLenum, GLenum, ImageData*); | 233 void texImage2D(GLenum, GLint, GLint, GLenum, GLenum, ImageData*); |
228 void texImage2D(GLenum, | 234 void texImage2D(ExecutionContext*, |
| 235 GLenum, |
229 GLint, | 236 GLint, |
230 GLint, | 237 GLint, |
231 GLenum, | 238 GLenum, |
232 GLenum, | 239 GLenum, |
233 HTMLImageElement*, | 240 HTMLImageElement*, |
234 ExceptionState&); | 241 ExceptionState&); |
235 void texImage2D(GLenum, | 242 void texImage2D(ExecutionContext*, |
| 243 GLenum, |
236 GLint, | 244 GLint, |
237 GLint, | 245 GLint, |
238 GLenum, | 246 GLenum, |
239 GLenum, | 247 GLenum, |
240 HTMLCanvasElement*, | 248 HTMLCanvasElement*, |
241 ExceptionState&); | 249 ExceptionState&); |
242 void texImage2D(GLenum, | 250 void texImage2D(ExecutionContext*, |
| 251 GLenum, |
243 GLint, | 252 GLint, |
244 GLint, | 253 GLint, |
245 GLenum, | 254 GLenum, |
246 GLenum, | 255 GLenum, |
247 HTMLVideoElement*, | 256 HTMLVideoElement*, |
248 ExceptionState&); | 257 ExceptionState&); |
249 void texImage2D(GLenum, | 258 void texImage2D(GLenum, |
250 GLint, | 259 GLint, |
251 GLint, | 260 GLint, |
252 GLenum, | 261 GLenum, |
253 GLenum, | 262 GLenum, |
254 ImageBitmap*, | 263 ImageBitmap*, |
255 ExceptionState&); | 264 ExceptionState&); |
256 void texSubImage2D(GLenum, GLint, GLint, GLint, GLenum, GLenum, ImageData*); | 265 void texSubImage2D(GLenum, GLint, GLint, GLint, GLenum, GLenum, ImageData*); |
257 void texSubImage2D(GLenum, | 266 void texSubImage2D(ExecutionContext*, |
| 267 GLenum, |
258 GLint, | 268 GLint, |
259 GLint, | 269 GLint, |
260 GLint, | 270 GLint, |
261 GLenum, | 271 GLenum, |
262 GLenum, | 272 GLenum, |
263 HTMLImageElement*, | 273 HTMLImageElement*, |
264 ExceptionState&); | 274 ExceptionState&); |
265 void texSubImage2D(GLenum, | 275 void texSubImage2D(ExecutionContext*, |
| 276 GLenum, |
266 GLint, | 277 GLint, |
267 GLint, | 278 GLint, |
268 GLint, | 279 GLint, |
269 GLenum, | 280 GLenum, |
270 GLenum, | 281 GLenum, |
271 HTMLCanvasElement*, | 282 HTMLCanvasElement*, |
272 ExceptionState&); | 283 ExceptionState&); |
273 void texSubImage2D(GLenum, | 284 void texSubImage2D(ExecutionContext*, |
| 285 GLenum, |
274 GLint, | 286 GLint, |
275 GLint, | 287 GLint, |
276 GLint, | 288 GLint, |
277 GLenum, | 289 GLenum, |
278 GLenum, | 290 GLenum, |
279 HTMLVideoElement*, | 291 HTMLVideoElement*, |
280 ExceptionState&); | 292 ExceptionState&); |
281 void texSubImage2D(GLenum, | 293 void texSubImage2D(GLenum, |
282 GLint, | 294 GLint, |
283 GLint, | 295 GLint, |
(...skipping 29 matching lines...) Expand all Loading... |
313 void texImage3D(GLenum, | 325 void texImage3D(GLenum, |
314 GLint, | 326 GLint, |
315 GLint, | 327 GLint, |
316 GLsizei, | 328 GLsizei, |
317 GLsizei, | 329 GLsizei, |
318 GLsizei, | 330 GLsizei, |
319 GLint, | 331 GLint, |
320 GLenum, | 332 GLenum, |
321 GLenum, | 333 GLenum, |
322 ImageData*); | 334 ImageData*); |
323 void texImage3D(GLenum, | 335 void texImage3D(ExecutionContext*, |
| 336 GLenum, |
324 GLint, | 337 GLint, |
325 GLint, | 338 GLint, |
326 GLsizei, | 339 GLsizei, |
327 GLsizei, | 340 GLsizei, |
328 GLsizei, | 341 GLsizei, |
329 GLint, | 342 GLint, |
330 GLenum, | 343 GLenum, |
331 GLenum, | 344 GLenum, |
332 HTMLImageElement*, | 345 HTMLImageElement*, |
333 ExceptionState&); | 346 ExceptionState&); |
334 void texImage3D(GLenum, | 347 void texImage3D(ExecutionContext*, |
| 348 GLenum, |
335 GLint, | 349 GLint, |
336 GLint, | 350 GLint, |
337 GLsizei, | 351 GLsizei, |
338 GLsizei, | 352 GLsizei, |
339 GLsizei, | 353 GLsizei, |
340 GLint, | 354 GLint, |
341 GLenum, | 355 GLenum, |
342 GLenum, | 356 GLenum, |
343 HTMLCanvasElement*, | 357 HTMLCanvasElement*, |
344 ExceptionState&); | 358 ExceptionState&); |
345 void texImage3D(GLenum, | 359 void texImage3D(ExecutionContext*, |
| 360 GLenum, |
346 GLint, | 361 GLint, |
347 GLint, | 362 GLint, |
348 GLsizei, | 363 GLsizei, |
349 GLsizei, | 364 GLsizei, |
350 GLsizei, | 365 GLsizei, |
351 GLint, | 366 GLint, |
352 GLenum, | 367 GLenum, |
353 GLenum, | 368 GLenum, |
354 HTMLVideoElement*, | 369 HTMLVideoElement*, |
355 ExceptionState&); | 370 ExceptionState&); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 GLint, | 416 GLint, |
402 GLint, | 417 GLint, |
403 GLint, | 418 GLint, |
404 GLint, | 419 GLint, |
405 GLsizei, | 420 GLsizei, |
406 GLsizei, | 421 GLsizei, |
407 GLsizei, | 422 GLsizei, |
408 GLenum, | 423 GLenum, |
409 GLenum, | 424 GLenum, |
410 ImageData*); | 425 ImageData*); |
411 void texSubImage3D(GLenum, | 426 void texSubImage3D(ExecutionContext*, |
| 427 GLenum, |
412 GLint, | 428 GLint, |
413 GLint, | 429 GLint, |
414 GLint, | 430 GLint, |
415 GLint, | 431 GLint, |
416 GLsizei, | 432 GLsizei, |
417 GLsizei, | 433 GLsizei, |
418 GLsizei, | 434 GLsizei, |
419 GLenum, | 435 GLenum, |
420 GLenum, | 436 GLenum, |
421 HTMLImageElement*, | 437 HTMLImageElement*, |
422 ExceptionState&); | 438 ExceptionState&); |
423 void texSubImage3D(GLenum, | 439 void texSubImage3D(ExecutionContext*, |
| 440 GLenum, |
424 GLint, | 441 GLint, |
425 GLint, | 442 GLint, |
426 GLint, | 443 GLint, |
427 GLint, | 444 GLint, |
428 GLsizei, | 445 GLsizei, |
429 GLsizei, | 446 GLsizei, |
430 GLsizei, | 447 GLsizei, |
431 GLenum, | 448 GLenum, |
432 GLenum, | 449 GLenum, |
433 HTMLCanvasElement*, | 450 HTMLCanvasElement*, |
434 ExceptionState&); | 451 ExceptionState&); |
435 void texSubImage3D(GLenum, | 452 void texSubImage3D(ExecutionContext*, |
| 453 GLenum, |
436 GLint, | 454 GLint, |
437 GLint, | 455 GLint, |
438 GLint, | 456 GLint, |
439 GLint, | 457 GLint, |
440 GLsizei, | 458 GLsizei, |
441 GLsizei, | 459 GLsizei, |
442 GLsizei, | 460 GLsizei, |
443 GLenum, | 461 GLenum, |
444 GLenum, | 462 GLenum, |
445 HTMLVideoElement*, | 463 HTMLVideoElement*, |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 context, | 1132 context, |
1115 context->Is3d() && | 1133 context->Is3d() && |
1116 WebGLRenderingContextBase::GetWebGLVersion(context) >= 2, | 1134 WebGLRenderingContextBase::GetWebGLVersion(context) >= 2, |
1117 context.Is3d() && | 1135 context.Is3d() && |
1118 WebGLRenderingContextBase::GetWebGLVersion(&context) >= | 1136 WebGLRenderingContextBase::GetWebGLVersion(&context) >= |
1119 2); | 1137 2); |
1120 | 1138 |
1121 } // namespace blink | 1139 } // namespace blink |
1122 | 1140 |
1123 #endif | 1141 #endif |
OLD | NEW |