| 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 "modules/webgl/WebGLExtension.h" | 8 #include "modules/webgl/WebGLExtension.h" |
| 9 #include "modules/webgl/WebGLRenderingContextBase.h" | 9 #include "modules/webgl/WebGLRenderingContextBase.h" |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 GLenum format, GLenum type, DOMArrayBufferView*); | 52 GLenum format, GLenum type, DOMArrayBufferView*); |
| 53 void texImage2D(GLenum target, GLint level, GLint internalformat, | 53 void texImage2D(GLenum target, GLint level, GLint internalformat, |
| 54 GLenum format, GLenum type, ImageData*); | 54 GLenum format, GLenum type, ImageData*); |
| 55 void texImage2D(GLenum target, GLint level, GLint internalformat, | 55 void texImage2D(GLenum target, GLint level, GLint internalformat, |
| 56 GLenum format, GLenum type, HTMLImageElement*, ExceptionState&); | 56 GLenum format, GLenum type, HTMLImageElement*, ExceptionState&); |
| 57 void texImage2D(GLenum target, GLint level, GLint internalformat, | 57 void texImage2D(GLenum target, GLint level, GLint internalformat, |
| 58 GLenum format, GLenum type, HTMLCanvasElement*, ExceptionState&); | 58 GLenum format, GLenum type, HTMLCanvasElement*, ExceptionState&); |
| 59 void texImage2D(GLenum target, GLint level, GLint internalformat, | 59 void texImage2D(GLenum target, GLint level, GLint internalformat, |
| 60 GLenum format, GLenum type, HTMLVideoElement*, ExceptionState&); | 60 GLenum format, GLenum type, HTMLVideoElement*, ExceptionState&); |
| 61 void texImage2D(GLenum target, GLint level, GLint internalformat, | 61 void texImage2D(GLenum target, GLint level, GLint internalformat, |
| 62 GLenum format, GLenum type, RawPtr<ImageBitmap>, ExceptionState&); | 62 GLenum format, GLenum type, ImageBitmap*, ExceptionState&); |
| 63 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, | 63 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 64 GLsizei width, GLsizei height, | 64 GLsizei width, GLsizei height, |
| 65 GLenum format, GLenum type, DOMArrayBufferView*); | 65 GLenum format, GLenum type, DOMArrayBufferView*); |
| 66 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, | 66 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 67 GLenum format, GLenum type, ImageData*); | 67 GLenum format, GLenum type, ImageData*); |
| 68 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, | 68 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 69 GLenum format, GLenum type, HTMLImageElement*, ExceptionState&); | 69 GLenum format, GLenum type, HTMLImageElement*, ExceptionState&); |
| 70 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, | 70 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 71 GLenum format, GLenum type, HTMLCanvasElement*, ExceptionState&); | 71 GLenum format, GLenum type, HTMLCanvasElement*, ExceptionState&); |
| 72 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, | 72 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 73 GLenum format, GLenum type, HTMLVideoElement*, ExceptionState&); | 73 GLenum format, GLenum type, HTMLVideoElement*, ExceptionState&); |
| 74 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, | 74 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 75 GLenum format, GLenum type, RawPtr<ImageBitmap>, ExceptionState&); | 75 GLenum format, GLenum type, ImageBitmap*, ExceptionState&); |
| 76 | 76 |
| 77 void texStorage2D(GLenum, GLsizei, GLenum, GLsizei, GLsizei); | 77 void texStorage2D(GLenum, GLsizei, GLenum, GLsizei, GLsizei); |
| 78 void texStorage3D(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei); | 78 void texStorage3D(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei); |
| 79 void texImage3D(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLen
um, GLenum, DOMArrayBufferView*); | 79 void texImage3D(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLen
um, GLenum, DOMArrayBufferView*); |
| 80 void texImage3D(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLen
um, GLenum, GLintptr); | 80 void texImage3D(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLen
um, GLenum, GLintptr); |
| 81 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLs
izei, GLenum, GLenum, DOMArrayBufferView*); | 81 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLs
izei, GLenum, GLenum, DOMArrayBufferView*); |
| 82 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLs
izei, GLenum, GLenum, GLintptr); | 82 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLs
izei, GLenum, GLenum, GLintptr); |
| 83 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, Image
Data*); | 83 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, Image
Data*); |
| 84 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLI
mageElement*, ExceptionState&); | 84 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLI
mageElement*, ExceptionState&); |
| 85 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLC
anvasElement*, ExceptionState&); | 85 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLC
anvasElement*, ExceptionState&); |
| 86 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLV
ideoElement*, ExceptionState&); | 86 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLV
ideoElement*, ExceptionState&); |
| 87 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, RawPt
r<ImageBitmap>, ExceptionState&); | 87 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, Image
Bitmap*, ExceptionState&); |
| 88 void copyTexSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLs
izei, GLsizei); | 88 void copyTexSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLs
izei, GLsizei); |
| 89 void compressedTexImage3D(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei,
GLint, DOMArrayBufferView*); | 89 void compressedTexImage3D(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei,
GLint, DOMArrayBufferView*); |
| 90 void compressedTexSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLsizei, GL
sizei, GLsizei, GLenum, DOMArrayBufferView*); | 90 void compressedTexSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLsizei, GL
sizei, GLsizei, GLenum, DOMArrayBufferView*); |
| 91 | 91 |
| 92 /* Programs and shaders */ | 92 /* Programs and shaders */ |
| 93 GLint getFragDataLocation(WebGLProgram*, const String&); | 93 GLint getFragDataLocation(WebGLProgram*, const String&); |
| 94 | 94 |
| 95 /* Uniforms and attributes */ | 95 /* Uniforms and attributes */ |
| 96 void uniform1ui(const WebGLUniformLocation*, GLuint); | 96 void uniform1ui(const WebGLUniformLocation*, GLuint); |
| 97 void uniform2ui(const WebGLUniformLocation*, GLuint, GLuint); | 97 void uniform2ui(const WebGLUniformLocation*, GLuint, GLuint); |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 GLint m_unpackSkipImages; | 313 GLint m_unpackSkipImages; |
| 314 }; | 314 }; |
| 315 | 315 |
| 316 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 316 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
| 317 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 317 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 318 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 318 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
| 319 | 319 |
| 320 } // namespace blink | 320 } // namespace blink |
| 321 | 321 |
| 322 #endif | 322 #endif |
| OLD | NEW |