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

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

Issue 1095893002: gpu: Fix some context lost marking glitches+leaks and add UMA stats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kbr's comment Created 5 years, 8 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/BUILD.gn ('k') | gpu/command_buffer/service/context_group.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/BUILD.gn ('k') | gpu/command_buffer/service/context_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698