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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 /* Texture objects */ | 46 /* Texture objects */ |
47 void texStorage2D(GLenum, GLsizei, GLenum, GLsizei, GLsizei); | 47 void texStorage2D(GLenum, GLsizei, GLenum, GLsizei, GLsizei); |
48 void texStorage3D(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei); | 48 void texStorage3D(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei); |
49 void texImage3D(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLen
um, GLenum, DOMArrayBufferView*); | 49 void texImage3D(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLen
um, GLenum, DOMArrayBufferView*); |
50 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLs
izei, GLenum, GLenum, DOMArrayBufferView*); | 50 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLs
izei, GLenum, GLenum, DOMArrayBufferView*); |
51 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, Image
Data*); | 51 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, Image
Data*); |
52 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLI
mageElement*, ExceptionState&); | 52 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLI
mageElement*, ExceptionState&); |
53 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLC
anvasElement*, ExceptionState&); | 53 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLC
anvasElement*, ExceptionState&); |
54 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLV
ideoElement*, ExceptionState&); | 54 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, HTMLV
ideoElement*, ExceptionState&); |
| 55 void texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, PassR
efPtrWillBeRawPtr<ImageBitmap>, ExceptionState&); |
55 void copyTexSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLs
izei, GLsizei); | 56 void copyTexSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLs
izei, GLsizei); |
56 void compressedTexImage3D(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei,
GLint, DOMArrayBufferView*); | 57 void compressedTexImage3D(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei,
GLint, DOMArrayBufferView*); |
57 void compressedTexSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLsizei, GL
sizei, GLsizei, GLenum, DOMArrayBufferView*); | 58 void compressedTexSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLsizei, GL
sizei, GLsizei, GLenum, DOMArrayBufferView*); |
58 | 59 |
59 /* Programs and shaders */ | 60 /* Programs and shaders */ |
60 GLint getFragDataLocation(WebGLProgram*, const String&); | 61 GLint getFragDataLocation(WebGLProgram*, const String&); |
61 | 62 |
62 /* Uniforms and attributes */ | 63 /* Uniforms and attributes */ |
63 void uniform1ui(const WebGLUniformLocation*, GLuint); | 64 void uniform1ui(const WebGLUniformLocation*, GLuint); |
64 void uniform2ui(const WebGLUniformLocation*, GLuint, GLuint); | 65 void uniform2ui(const WebGLUniformLocation*, GLuint, GLuint); |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 GLint m_unpackSkipImages; | 283 GLint m_unpackSkipImages; |
283 }; | 284 }; |
284 | 285 |
285 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 286 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
286 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 287 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
287 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 288 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
288 | 289 |
289 } // namespace blink | 290 } // namespace blink |
290 | 291 |
291 #endif | 292 #endif |
OLD | NEW |