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

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

Issue 7253052: Execute all GL commands up to the put offset reported by a flush. (Closed) Base URL: svn://chrome-svn/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 92876)
+++ gpu/command_buffer/common/constants.h (working copy)
@@ -21,28 +21,12 @@
kUnknownCommand,
kInvalidArguments,
kLostContext,
- 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
+ kGenericError
};
// Return true if the given error code is an actual error.
inline bool IsError(Error error) {
- switch (error) {
- case kNoError:
- case kWaiting:
- case kYield:
- return false;
- default:
- return true;
- }
+ return error != kNoError;
}
// 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