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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // Generate GL error and return false if parameters are illegal. | 189 // Generate GL error and return false if parameters are illegal. |
190 bool validateGetFramebufferAttachmentParameterFunc(const char* functionName,
GLenum target, GLenum attachment); | 190 bool validateGetFramebufferAttachmentParameterFunc(const char* functionName,
GLenum target, GLenum attachment); |
191 | 191 |
192 bool validateClearBuffer(const char* functionName, GLenum buffer, GLsizei le
ngth); | 192 bool validateClearBuffer(const char* functionName, GLenum buffer, GLsizei le
ngth); |
193 | 193 |
194 enum TexStorageType { | 194 enum TexStorageType { |
195 TexStorageType2D, | 195 TexStorageType2D, |
196 TexStorageType3D, | 196 TexStorageType3D, |
197 }; | 197 }; |
198 bool validateTexStorage(const char*, GLenum, GLsizei, GLenum, GLsizei, GLsiz
ei, GLsizei, TexStorageType); | 198 bool validateTexStorage(const char*, GLenum, GLsizei, GLenum, GLsizei, GLsiz
ei, GLsizei, TexStorageType); |
199 bool validateTexImage3D(const char* functionName, GLenum target, GLint level
, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint bor
der, GLenum format, GLenum type); | |
200 bool validateTexSubImage3D(const char*, GLenum target, GLint level, GLint xo
ffset, GLint yoffset, GLint zoffset, GLenum format, GLenum type, GLsizei width,
GLsizei height, GLsizei depth); | 199 bool validateTexSubImage3D(const char*, GLenum target, GLint level, GLint xo
ffset, GLint yoffset, GLint zoffset, GLenum format, GLenum type, GLsizei width,
GLsizei height, GLsizei depth); |
201 | 200 |
202 bool validateUniformBlockIndex(const char*, WebGLProgram*, GLuint); | 201 bool validateUniformBlockIndex(const char*, WebGLProgram*, GLuint); |
203 | 202 |
204 ScriptValue getInt64Parameter(ScriptState*, GLenum); | 203 ScriptValue getInt64Parameter(ScriptState*, GLenum); |
205 | 204 |
206 void texSubImage3DImpl(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, I
mage*, WebGLImageConversion::ImageHtmlDomSource, bool, bool); | 205 void texSubImage3DImpl(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, I
mage*, WebGLImageConversion::ImageHtmlDomSource, bool, bool); |
207 void samplerParameter(WebGLSampler*, GLenum, GLfloat, GLint, bool); | 206 void samplerParameter(WebGLSampler*, GLenum, GLfloat, GLint, bool); |
208 | 207 |
209 bool isBufferBoundToTransformFeedback(WebGLBuffer*); | 208 bool isBufferBoundToTransformFeedback(WebGLBuffer*); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 GLint m_unpackSkipImages; | 278 GLint m_unpackSkipImages; |
280 }; | 279 }; |
281 | 280 |
282 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 281 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
283 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 282 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
284 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 283 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
285 | 284 |
286 } // namespace blink | 285 } // namespace blink |
287 | 286 |
288 #endif | 287 #endif |
OLD | NEW |