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