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

Unified Diff: Source/core/html/canvas/WebGLQuery.h

Issue 1210673002: Improving support for WebGL2 Query objects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressing some of kbr@'s nits Created 5 years, 6 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
« no previous file with comments | « Source/core/html/canvas/WebGL2RenderingContextBase.cpp ('k') | Source/core/html/canvas/WebGLQuery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLQuery.h
diff --git a/Source/core/html/canvas/WebGLQuery.h b/Source/core/html/canvas/WebGLQuery.h
index 59e860499571bd66b1107da3a0943a50450f03cb..5a7a824fe848f26b05f7723594ba7ebba0373055 100644
--- a/Source/core/html/canvas/WebGLQuery.h
+++ b/Source/core/html/canvas/WebGLQuery.h
@@ -19,6 +19,10 @@ public:
static PassRefPtrWillBeRawPtr<WebGLQuery> create(WebGL2RenderingContextBase*);
+ void setTarget(GLenum);
+ GLenum getTarget() const { return m_target; }
+ bool isCompatibleTarget(GLenum);
+
protected:
explicit WebGLQuery(WebGL2RenderingContextBase*);
@@ -26,6 +30,8 @@ protected:
private:
bool isQuery() const override { return true; }
+
+ GLenum m_target;
};
} // namespace blink
« no previous file with comments | « Source/core/html/canvas/WebGL2RenderingContextBase.cpp ('k') | Source/core/html/canvas/WebGLQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698