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

Unified Diff: cc/scheduler_state_machine.cc

Issue 11294003: cc: Make --jank-instead-of-checkerboard jank more often (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Just prohibit force-after-commit Created 8 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler_state_machine.cc
diff --git a/cc/scheduler_state_machine.cc b/cc/scheduler_state_machine.cc
index 56fde75c936a9604856bd59d2d5f4d08b962459d..9eda03780ec752a7fc4c0b1ce37ea45d05fc8a81 100644
--- a/cc/scheduler_state_machine.cc
+++ b/cc/scheduler_state_machine.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "base/stringprintf.h"
+#include "cc/settings.h"
namespace cc {
@@ -263,7 +264,7 @@ void SchedulerStateMachine::didDrawIfPossibleCompleted(bool success)
m_needsRedraw = true;
m_needsCommit = true;
m_consecutiveFailedDraws++;
- if (m_consecutiveFailedDraws >= m_maximumNumberOfFailedDrawsBeforeDrawIsForced) {
+ if (!Settings::jankInsteadOfCheckerboard() && m_consecutiveFailedDraws >= m_maximumNumberOfFailedDrawsBeforeDrawIsForced) {
m_consecutiveFailedDraws = 0;
// We need to force a draw, but it doesn't make sense to do this until
// we've committed and have new textures.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698