Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h

Issue 1474513003: Upgrade PixelStorei to ES3/WebGL2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: client side Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 @@ public:
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 @@ protected:
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*);

Powered by Google App Engine
This is Rietveld 408576698