| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); | 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); | 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); |
| 201 | 201 |
| 202 bool validateUniformBlockIndex(const char*, WebGLProgram*, GLuint); |
| 203 |
| 202 ScriptValue getInt64Parameter(ScriptState*, GLenum); | 204 ScriptValue getInt64Parameter(ScriptState*, GLenum); |
| 203 | 205 |
| 204 void texSubImage3DImpl(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, I
mage*, WebGLImageConversion::ImageHtmlDomSource, bool, bool); | 206 void texSubImage3DImpl(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, I
mage*, WebGLImageConversion::ImageHtmlDomSource, bool, bool); |
| 205 void samplerParameter(WebGLSampler*, GLenum, GLfloat, GLint, bool); | 207 void samplerParameter(WebGLSampler*, GLenum, GLfloat, GLint, bool); |
| 206 | 208 |
| 207 bool isBufferBoundToTransformFeedback(WebGLBuffer*); | 209 bool isBufferBoundToTransformFeedback(WebGLBuffer*); |
| 208 bool isBufferBoundToNonTransformFeedback(WebGLBuffer*); | 210 bool isBufferBoundToNonTransformFeedback(WebGLBuffer*); |
| 209 bool validateBufferTargetCompatibility(const char*, GLenum, WebGLBuffer*); | 211 bool validateBufferTargetCompatibility(const char*, GLenum, WebGLBuffer*); |
| 210 | 212 |
| 211 bool validateBufferBaseTarget(const char* functionName, GLenum target); | 213 bool validateBufferBaseTarget(const char* functionName, GLenum target); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 GLint m_unpackSkipImages; | 272 GLint m_unpackSkipImages; |
| 271 }; | 273 }; |
| 272 | 274 |
| 273 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 275 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
| 274 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 276 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 275 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 277 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
| 276 | 278 |
| 277 } // namespace blink | 279 } // namespace blink |
| 278 | 280 |
| 279 #endif | 281 #endif |
| OLD | NEW |