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

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

Issue 2457363002: Add offset arguments to readPixels and compressedTex* per WebGL 2.0 spec. (Closed)
Patch Set: Rebased. Created 4 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/WebGLRenderingContextBase.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
index f48b667825643520b216c9817da881bdbba64a44..e57fb94df8857b737c1fe4276d2da3ce6d49b27c 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
@@ -1541,6 +1541,16 @@ class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext,
IntRect sentinelEmptyRect();
IntRect safeGetImageSize(Image*);
+ // Helper implementing readPixels for WebGL 1.0 and 2.0.
+ void readPixelsHelper(GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLenum type,
+ DOMArrayBufferView* pixels,
+ GLuint offset);
+
private:
WebGLRenderingContextBase(HTMLCanvasElement*,
OffscreenCanvas*,

Powered by Google App Engine
This is Rietveld 408576698