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

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

Issue 1135943002: Pull in various gpu/command_buffer fixes from chromium (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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/common/capabilities.cc ('k') | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/constants.h
diff --git a/gpu/command_buffer/common/constants.h b/gpu/command_buffer/common/constants.h
index 054708f4a607409799b57851d4cd116d064f80e5..d06836c0d71ea9e5a5c871db8ef79f75ea424eca 100644
--- a/gpu/command_buffer/common/constants.h
+++ b/gpu/command_buffer/common/constants.h
@@ -23,7 +23,8 @@ namespace error {
kInvalidArguments,
kLostContext,
kGenericError,
- kDeferCommandUntilLater
+ kDeferCommandUntilLater,
+ kErrorLast = kDeferCommandUntilLater,
};
// Return true if the given error code is an actual error.
@@ -41,7 +42,17 @@ namespace error {
// It is unknown whether this context provoked the loss of context.
kUnknown,
- kContextLostReasonLast = kUnknown
+
+ // GL_OUT_OF_MEMORY caused this context to be lost.
+ kOutOfMemory,
+
+ // A failure to make the context current caused it to be lost.
+ kMakeCurrentFailed,
+
+ // The GPU channel was lost. This error is set client-side.
+ kGpuChannelLost,
+
+ kContextLostReasonLast = kGpuChannelLost
};
}
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('k') | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698