| 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
|
| };
|
| }
|
|
|
|
|