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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 131683005: cc: Make PrepareToDraw return an enum for why it aborts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DRAW_SUCCESS; assert CanDraw Created 6 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
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index 069384bdcccd4585a29e107c1e6f3ee5c3841b3a..7f0ef897f993a3d716c226332e95829f682d8bd2 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -12,6 +12,7 @@
#include "base/time/time.h"
#include "cc/base/cc_export.h"
#include "cc/output/begin_frame_args.h"
+#include "cc/scheduler/draw_swap_readback_result.h"
#include "cc/scheduler/scheduler_settings.h"
namespace base {
@@ -180,7 +181,7 @@ class CC_EXPORT SchedulerStateMachine {
void SetSmoothnessTakesPriority(bool smoothness_takes_priority);
// Indicates whether ACTION_DRAW_AND_SWAP_IF_POSSIBLE drew to the screen.
- void DidDrawIfPossibleCompleted(bool success);
+ void DidDrawIfPossibleCompleted(DrawSwapReadbackResult::DrawResult result);
// Indicates that a new commit flow needs to be performed, either to pull
// updates from the main thread to the impl, or to push deltas from the impl
@@ -287,7 +288,7 @@ class CC_EXPORT SchedulerStateMachine {
// we start throttling ACTION_MANAGE_TILES such that we average one
// ManageTile per BeginImplFrame.
int manage_tiles_funnel_;
- int consecutive_failed_draws_;
+ int consecutive_checkerboard_animations_;
bool needs_redraw_;
bool needs_manage_tiles_;
bool swap_used_incomplete_tile_;

Powered by Google App Engine
This is Rietveld 408576698