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

Unified Diff: content/common/gpu/client/command_buffer_metrics.cc

Issue 1581273002: Harden CommandBufferProxyImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Post a task for lost context callback when in a reply Created 4 years, 11 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 | « no previous file | content/common/gpu/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/command_buffer_metrics.cc
diff --git a/content/common/gpu/client/command_buffer_metrics.cc b/content/common/gpu/client/command_buffer_metrics.cc
index 5065ca5da6c388aaa400d6527f1f2181e05172c1..38590c36c08d4596dde9b99468128ea41018f3e5 100644
--- a/content/common/gpu/client/command_buffer_metrics.cc
+++ b/content/common/gpu/client/command_buffer_metrics.cc
@@ -24,8 +24,10 @@ enum CommandBufferContextLostReason {
CONTEXT_LOST_UNKNOWN,
CONTEXT_LOST_OUT_OF_MEMORY,
CONTEXT_LOST_MAKECURRENT_FAILED,
+ CONTEXT_LOST_INVALID_GPU_MESSAGE,
// Add new values here and update _MAX_ENUM.
- CONTEXT_LOST_REASON_MAX_ENUM = CONTEXT_LOST_MAKECURRENT_FAILED
+ // Also update //tools/metrics/histograms/histograms.xml
+ CONTEXT_LOST_REASON_MAX_ENUM = CONTEXT_LOST_INVALID_GPU_MESSAGE
};
CommandBufferContextLostReason GetContextLostReason(
@@ -45,6 +47,8 @@ CommandBufferContextLostReason GetContextLostReason(
return CONTEXT_LOST_MAKECURRENT_FAILED;
case gpu::error::kGpuChannelLost:
return CONTEXT_LOST_GPU_CHANNEL_ERROR;
+ case gpu::error::kInvalidGpuMessage:
+ return CONTEXT_LOST_INVALID_GPU_MESSAGE;
}
}
switch (error) {
« no previous file with comments | « no previous file | content/common/gpu/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698