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

Unified Diff: gpu/command_buffer/common/constants.h

Issue 7458010: Revert 93066 - Execute all GL commands up to the put offset reported by a each flush.This means g... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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: gpu/command_buffer/common/constants.h
===================================================================
--- gpu/command_buffer/common/constants.h (revision 93137)
+++ gpu/command_buffer/common/constants.h (working copy)
@@ -21,12 +21,28 @@
kUnknownCommand,
kInvalidArguments,
kLostContext,
- kGenericError
+ kGenericError,
+
+ // This is not an error. It is returned by WaitLatch when it is blocked.
+ // When blocked, the context will not reschedule itself until another
+ // context executes a SetLatch command.
+ kWaiting,
+
+ // This is not an error either. It just hints the scheduler that it can exit
+ // its loop, update state, and schedule other command buffers.
+ kYield
};
// Return true if the given error code is an actual error.
inline bool IsError(Error error) {
- return error != kNoError;
+ switch (error) {
+ case kNoError:
+ case kWaiting:
+ case kYield:
+ return false;
+ default:
+ return true;
+ }
}
// Provides finer grained information about why the context was lost.
« no previous file with comments | « gpu/command_buffer/common/command_buffer_mock.h ('k') | gpu/command_buffer/common/gles2_cmd_format_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698