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

Unified Diff: Source/modules/webgl/WebGLBuffer.h

Issue 1300573002: WebGL 2: add readPixels API to read pixels into pixel pack buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: offset should not be less than 0 Created 5 years, 4 months 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: Source/modules/webgl/WebGLBuffer.h
diff --git a/Source/modules/webgl/WebGLBuffer.h b/Source/modules/webgl/WebGLBuffer.h
index 2e794f82e6957742fe2caace6f46c32dbf681847..fcf922b88244a7cb3a698dd43fe273317812fe71 100644
--- a/Source/modules/webgl/WebGLBuffer.h
+++ b/Source/modules/webgl/WebGLBuffer.h
@@ -42,6 +42,9 @@ public:
bool hasEverBeenBound() const { return object() && m_initialTarget; }
+ void setSize(long long size) { m_size = size; }
+ long long getSize() const { return m_size; }
+
protected:
explicit WebGLBuffer(WebGLRenderingContextBase*);
@@ -51,6 +54,7 @@ private:
bool isBuffer() const override { return true; }
GLenum m_initialTarget;
+ long long m_size;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698