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

Side by Side Diff: cc/scheduler/scheduler.cc

Issue 23686011: CC: Fix missing swap-used-incomplete-tile updates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test. Created 7 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/scheduler/scheduler.h" 5 #include "cc/scheduler/scheduler.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "cc/debug/traced_value.h" 10 #include "cc/debug/traced_value.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 state_machine_.SetNeedsCommit(); 58 state_machine_.SetNeedsCommit();
59 state_machine_.SetNeedsForcedCommit(); 59 state_machine_.SetNeedsForcedCommit();
60 ProcessScheduledActions(); 60 ProcessScheduledActions();
61 } 61 }
62 62
63 void Scheduler::SetNeedsRedraw() { 63 void Scheduler::SetNeedsRedraw() {
64 state_machine_.SetNeedsRedraw(); 64 state_machine_.SetNeedsRedraw();
65 ProcessScheduledActions(); 65 ProcessScheduledActions();
66 } 66 }
67 67
68 void Scheduler::DidSwapUseIncompleteTile() { 68 void Scheduler::SetSwapUsedIncompleteTile(bool used_incomplete_tile) {
69 state_machine_.DidSwapUseIncompleteTile(); 69 state_machine_.SetSwapUsedIncompleteTile(used_incomplete_tile);
70 ProcessScheduledActions(); 70 ProcessScheduledActions();
71 } 71 }
72 72
73 void Scheduler::SetNeedsForcedRedraw() { 73 void Scheduler::SetNeedsForcedRedraw() {
74 state_machine_.SetNeedsForcedRedraw(); 74 state_machine_.SetNeedsForcedRedraw();
75 ProcessScheduledActions(); 75 ProcessScheduledActions();
76 } 76 }
77 77
78 void Scheduler::SetMainThreadNeedsLayerTextures() { 78 void Scheduler::SetMainThreadNeedsLayerTextures() {
79 state_machine_.SetMainThreadNeedsLayerTextures(); 79 state_machine_.SetMainThreadNeedsLayerTextures();
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 SetupNextBeginFrameIfNeeded(); 245 SetupNextBeginFrameIfNeeded();
246 client_->DidAnticipatedDrawTimeChange(AnticipatedDrawTime()); 246 client_->DidAnticipatedDrawTimeChange(AnticipatedDrawTime());
247 } 247 }
248 248
249 bool Scheduler::WillDrawIfNeeded() const { 249 bool Scheduler::WillDrawIfNeeded() const {
250 return !state_machine_.PendingDrawsShouldBeAborted(); 250 return !state_machine_.PendingDrawsShouldBeAborted();
251 } 251 }
252 252
253 } // namespace cc 253 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698