| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 ScriptValue getFramebufferAttachmentParameter(ScriptState*, GLenum target, G
Lenum attachment, GLenum pname); | 205 ScriptValue getFramebufferAttachmentParameter(ScriptState*, GLenum target, G
Lenum attachment, GLenum pname); |
| 206 virtual ScriptValue getParameter(ScriptState*, GLenum pname); | 206 virtual ScriptValue getParameter(ScriptState*, GLenum pname); |
| 207 ScriptValue getProgramParameter(ScriptState*, WebGLProgram*, GLenum pname); | 207 ScriptValue getProgramParameter(ScriptState*, WebGLProgram*, GLenum pname); |
| 208 String getProgramInfoLog(WebGLProgram*); | 208 String getProgramInfoLog(WebGLProgram*); |
| 209 ScriptValue getRenderbufferParameter(ScriptState*, GLenum target, GLenum pna
me); | 209 ScriptValue getRenderbufferParameter(ScriptState*, GLenum target, GLenum pna
me); |
| 210 ScriptValue getShaderParameter(ScriptState*, WebGLShader*, GLenum pname); | 210 ScriptValue getShaderParameter(ScriptState*, WebGLShader*, GLenum pname); |
| 211 String getShaderInfoLog(WebGLShader*); | 211 String getShaderInfoLog(WebGLShader*); |
| 212 PassRefPtrWillBeRawPtr<WebGLShaderPrecisionFormat> getShaderPrecisionFormat(
GLenum shaderType, GLenum precisionType); | 212 PassRefPtrWillBeRawPtr<WebGLShaderPrecisionFormat> getShaderPrecisionFormat(
GLenum shaderType, GLenum precisionType); |
| 213 String getShaderSource(WebGLShader*); | 213 String getShaderSource(WebGLShader*); |
| 214 Nullable<Vector<String>> getSupportedExtensions(); | 214 Nullable<Vector<String>> getSupportedExtensions(); |
| 215 ScriptValue getTexParameter(ScriptState*, GLenum target, GLenum pname); | 215 virtual ScriptValue getTexParameter(ScriptState*, GLenum target, GLenum pnam
e); |
| 216 ScriptValue getUniform(ScriptState*, WebGLProgram*, const WebGLUniformLocati
on*); | 216 ScriptValue getUniform(ScriptState*, WebGLProgram*, const WebGLUniformLocati
on*); |
| 217 PassRefPtrWillBeRawPtr<WebGLUniformLocation> getUniformLocation(WebGLProgram
*, const String&); | 217 PassRefPtrWillBeRawPtr<WebGLUniformLocation> getUniformLocation(WebGLProgram
*, const String&); |
| 218 ScriptValue getVertexAttrib(ScriptState*, GLuint index, GLenum pname); | 218 ScriptValue getVertexAttrib(ScriptState*, GLuint index, GLenum pname); |
| 219 long long getVertexAttribOffset(GLuint index, GLenum pname); | 219 long long getVertexAttribOffset(GLuint index, GLenum pname); |
| 220 | 220 |
| 221 void hint(GLenum target, GLenum mode); | 221 void hint(GLenum target, GLenum mode); |
| 222 GLboolean isBuffer(WebGLBuffer*); | 222 GLboolean isBuffer(WebGLBuffer*); |
| 223 bool isContextLost() const; | 223 bool isContextLost() const; |
| 224 GLboolean isEnabled(GLenum cap); | 224 GLboolean isEnabled(GLenum cap); |
| 225 GLboolean isFramebuffer(WebGLFramebuffer*); | 225 GLboolean isFramebuffer(WebGLFramebuffer*); |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 // Generate GL error and return false for negative inputs; otherwise, return
true. | 789 // Generate GL error and return false for negative inputs; otherwise, return
true. |
| 790 bool validateSize(const char* functionName, GLint x, GLint y); | 790 bool validateSize(const char* functionName, GLint x, GLint y); |
| 791 | 791 |
| 792 // Helper function to check if all characters in the string belong to the | 792 // Helper function to check if all characters in the string belong to the |
| 793 // ASCII subset as defined in GLSL ES 1.0 spec section 3.1. | 793 // ASCII subset as defined in GLSL ES 1.0 spec section 3.1. |
| 794 bool validateString(const char* functionName, const String&); | 794 bool validateString(const char* functionName, const String&); |
| 795 | 795 |
| 796 // Helper function to check target and texture bound to the target. | 796 // Helper function to check target and texture bound to the target. |
| 797 // Generate GL errors and return 0 if target is invalid or texture bound is | 797 // Generate GL errors and return 0 if target is invalid or texture bound is |
| 798 // null. Otherwise, return the texture bound to the target. | 798 // null. Otherwise, return the texture bound to the target. |
| 799 WebGLTexture* validateTextureBinding(const char* functionName, GLenum target
, bool useSixEnumsForCubeMap); | 799 virtual WebGLTexture* validateTextureBinding(const char* functionName, GLenu
m target, bool useSixEnumsForCubeMap); |
| 800 | 800 |
| 801 // Helper function to check input format/type for functions {copy}Tex{Sub}Im
age. | 801 // Helper function to check input format/type for functions {copy}Tex{Sub}Im
age. |
| 802 // Generates GL error and returns false if parameters are invalid. | 802 // Generates GL error and returns false if parameters are invalid. |
| 803 bool validateTexFuncFormatAndType(const char* functionName, GLenum format, G
Lenum type, GLint level); | 803 bool validateTexFuncFormatAndType(const char* functionName, GLenum format, G
Lenum type, GLint level); |
| 804 | 804 |
| 805 // Helper function to check input level for functions {copy}Tex{Sub}Image. | 805 // Helper function to check input level for functions {copy}Tex{Sub}Image. |
| 806 // Generates GL error and returns false if level is invalid. | 806 // Generates GL error and returns false if level is invalid. |
| 807 bool validateTexFuncLevel(const char* functionName, GLenum target, GLint lev
el); | 807 bool validateTexFuncLevel(const char* functionName, GLenum target, GLint lev
el); |
| 808 | 808 |
| 809 // Helper function to check if a 64-bit value is non-negative and can fit in
to a 32-bit integer. | 809 // Helper function to check if a 64-bit value is non-negative and can fit in
to a 32-bit integer. |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 static IntSize oldestContextSize(); | 1005 static IntSize oldestContextSize(); |
| 1006 }; | 1006 }; |
| 1007 | 1007 |
| 1008 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1008 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 1009 | 1009 |
| 1010 } // namespace blink | 1010 } // namespace blink |
| 1011 | 1011 |
| 1012 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1012 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 1013 | 1013 |
| 1014 #endif // WebGLRenderingContextBase_h | 1014 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |