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

Unified Diff: ui/gl/gl_fence.h

Issue 1637293002: Reuse GLFenceNV when an existing CommandsCompletedQuery is reused (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved ResetSupported check into a separate function Created 4 years, 11 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 | « gpu/command_buffer/service/query_manager.cc ('k') | ui/gl/gl_fence.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_fence.h
diff --git a/ui/gl/gl_fence.h b/ui/gl/gl_fence.h
index cc25a1d735e79d13177d25c7a5280c138b994699..2f7a8772f9dff7b6b2feb146375999e1a848a5bb 100644
--- a/ui/gl/gl_fence.h
+++ b/ui/gl/gl_fence.h
@@ -25,6 +25,12 @@ class GL_EXPORT GLFence {
// client.
virtual void ServerWait() = 0;
+ // Returns true if re-setting state is supported.
+ virtual bool ResetSupported();
+
+ // Resets the fence to the original state.
+ virtual void ResetState();
+
private:
DISALLOW_COPY_AND_ASSIGN(GLFence);
};
« no previous file with comments | « gpu/command_buffer/service/query_manager.cc ('k') | ui/gl/gl_fence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698