Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
index 201fc75d60efc86e33b35d98178ec48df7cc61e8..c2862a954697e80628f8a35fab27ea1fcceca87e 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h |
@@ -276,7 +276,7 @@ |
void lineWidth(GLfloat); |
void linkProgram(WebGLProgram*); |
- void pixelStorei(GLenum pname, GLint param); |
+ virtual void pixelStorei(GLenum pname, GLint param); |
void polygonOffset(GLfloat factor, GLfloat units); |
virtual void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, DOMArrayBufferView* pixels); |
void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); |
@@ -487,6 +487,11 @@ |
void addCompressedTextureFormat(GLenum); |
void removeAllCompressedTextureFormats(); |
+ // Set UNPACK_ALIGNMENT to 1, all other parameters to 0. |
+ virtual void resetUnpackParameters(); |
+ // Restore the client unpack parameters. |
+ virtual void restoreUnpackParameters(); |
+ |
PassRefPtr<Image> drawImageIntoBuffer(PassRefPtr<Image>, int width, int height, const char* functionName); |
PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*); |