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

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: 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
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..9be7a4d559672e67ff6f065dddb409ab398c5dc5 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 compatibleTarget(GLenum);
Ken Russell (switch to Gerrit) 2015/06/24 21:07:22 I'd suggest "isCompatibleWithTarget".
+
protected:
explicit WebGLQuery(WebGL2RenderingContextBase*);
@@ -26,6 +30,8 @@ protected:
private:
bool isQuery() const override { return true; }
+
+ GLenum m_target;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698