Index: Source/core/html/canvas/WebGLRenderingContextBase.h |
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.h b/Source/core/html/canvas/WebGLRenderingContextBase.h |
index bd0bbdced2c365fbb475d1928df3d8dc18bbe2de..bf6aaadd30ac93ee11f2e0b8d6593fbb0befa3de 100644 |
--- a/Source/core/html/canvas/WebGLRenderingContextBase.h |
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.h |
@@ -209,7 +209,7 @@ public: |
PassRefPtrWillBeRawPtr<WebGLShaderPrecisionFormat> getShaderPrecisionFormat(GLenum shaderType, GLenum precisionType); |
String getShaderSource(WebGLShader*); |
Nullable<Vector<String>> getSupportedExtensions(); |
- ScriptValue getTexParameter(ScriptState*, GLenum target, GLenum pname); |
+ virtual ScriptValue getTexParameter(ScriptState*, GLenum target, GLenum pname); |
ScriptValue getUniform(ScriptState*, WebGLProgram*, const WebGLUniformLocation*); |
PassRefPtrWillBeRawPtr<WebGLUniformLocation> getUniformLocation(WebGLProgram*, const String&); |
ScriptValue getVertexAttrib(ScriptState*, GLuint index, GLenum pname); |
@@ -782,7 +782,7 @@ protected: |
// Helper function to check target and texture bound to the target. |
// Generate GL errors and return 0 if target is invalid or texture bound is |
// null. Otherwise, return the texture bound to the target. |
- WebGLTexture* validateTextureBinding(const char* functionName, GLenum target, bool useSixEnumsForCubeMap); |
+ virtual WebGLTexture* validateTextureBinding(const char* functionName, GLenum target, bool useSixEnumsForCubeMap); |
// Helper function to check input format/type for functions {copy}Tex{Sub}Image. |
// Generates GL error and returns false if parameters are invalid. |