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

Unified Diff: cc/scheduler/scheduler_state_machine.cc

Issue 162473003: cc: Add more DrawSwapReadbackResult enums (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Output return value Created 6 years, 10 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 | « cc/scheduler/draw_swap_readback_result.h ('k') | cc/scheduler/scheduler_state_machine_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.cc
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc
index 947637ddb0e86551714d4c741ef80ad37a689caa..5b87b18ef31e94158ccd21643674ce52ff38735e 100644
--- a/cc/scheduler/scheduler_state_machine.cc
+++ b/cc/scheduler/scheduler_state_machine.cc
@@ -1038,6 +1038,12 @@ void SchedulerStateMachine::DidDrawIfPossibleCompleted(
case DrawSwapReadbackResult::INVALID_RESULT:
NOTREACHED() << "Uninitialized DrawSwapReadbackResult.";
break;
+ case DrawSwapReadbackResult::DRAW_ABORTED_CANT_DRAW:
+ case DrawSwapReadbackResult::DRAW_ABORTED_CANT_READBACK:
+ case DrawSwapReadbackResult::DRAW_ABORTED_CONTEXT_LOST:
+ NOTREACHED() << "Invalid return value from DrawAndSwapIfPossible:"
+ << result;
+ break;
case DrawSwapReadbackResult::DRAW_SUCCESS:
consecutive_checkerboard_animations_ = 0;
forced_redraw_state_ = FORCED_REDRAW_STATE_IDLE;
« no previous file with comments | « cc/scheduler/draw_swap_readback_result.h ('k') | cc/scheduler/scheduler_state_machine_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698