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

Unified Diff: ui/gl/gl_fence.h

Issue 197563003: gpu: Allow fences to check whether a flush has occurred (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: line brk Created 6 years, 9 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 | « ui/gl/gl_context.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 c1967ec9c43df4666a17c56b6a6f7f84c45b5a98..021f3456f132c831417cb80f0a9f90f3b1d8709d 100644
--- a/ui/gl/gl_fence.h
+++ b/ui/gl/gl_fence.h
@@ -16,11 +16,16 @@ class GL_EXPORT GLFence {
virtual ~GLFence();
static GLFence* Create();
+
// Creates a fence that is not guaranteed to signal until the current context
- // is flushed. Use with caution.
+ // is flushed. It is illegal to call Client/ServerWait() on a fence without
+ // having explicitly called glFlush() or glFinish() in the originating
+ // context.
static GLFence* CreateWithoutFlush();
+
virtual bool HasCompleted() = 0;
virtual void ClientWait() = 0;
+
// Will block the server if supported, but might fall back to blocking the
// client.
virtual void ServerWait() = 0;
« no previous file with comments | « ui/gl/gl_context.cc ('k') | ui/gl/gl_fence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698