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

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

Issue 1474513003: Upgrade PixelStorei to ES3/WebGL2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/WebGL2RenderingContextBase.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h
index 3ab1aad20babffd691efbe1d197ef173b49c5bed..d9a0f2cb04385a895aee937a141f7d80a664651d 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h
@@ -175,6 +175,7 @@ public:
ScriptValue getParameter(ScriptState*, GLenum pname) override;
ScriptValue getTexParameter(ScriptState*, GLenum target, GLenum pname) override;
ScriptValue getFramebufferAttachmentParameter(ScriptState*, GLenum target, GLenum attachment, GLenum pname) override;
+ void pixelStorei(GLenum pname, GLint param) override;
void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, DOMArrayBufferView* pixels) override;
void restoreCurrentFramebuffer() override;
@@ -232,6 +233,11 @@ protected:
void removeBoundBuffer(WebGLBuffer*) override;
+ // Set UNPACK_ALIGNMENT to 1, all other parameters to 0.
+ void resetUnpackParameters();
+ // Restore the client unset parameters.
+ void restoreUnpackParameters();
+
PersistentWillBeMember<WebGLFramebuffer> m_readFramebufferBinding;
PersistentWillBeMember<WebGLTransformFeedback> m_transformFeedbackBinding;
GLint m_maxArrayTextureLayers;
@@ -252,6 +258,15 @@ protected:
PersistentWillBeMember<WebGLQuery> m_currentBooleanOcclusionQuery;
PersistentWillBeMember<WebGLQuery> m_currentTransformFeedbackPrimitivesWrittenQuery;
PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits;
+
+ GLint m_packRowLength;
+ GLint m_packSkipPixels;
+ GLint m_packSkipRows;
+ GLint m_unpackRowLength;
+ GLint m_unpackImageHeight;
+ GLint m_unpackSkipPixels;
+ GLint m_unpackSkipRows;
+ GLint m_unpackSkipImages;
};
DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context,

Powered by Google App Engine
This is Rietveld 408576698