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

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: rebase 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
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..34727529e98cafd3e1b41ec110c8b5c6c5c9ac5c 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,14 @@ 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,
+
+ kContextLostReasonLast = kMakeCurrentFailed
};
}

Powered by Google App Engine
This is Rietveld 408576698