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

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: Rebase. 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
« no previous file with comments | « cc/scheduler/scheduler.h ('k') | cc/scheduler/scheduler_state_machine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_.SetNeedsForcedCommitForReadback(); 59 state_machine_.SetNeedsForcedCommitForReadback();
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::SetMainThreadNeedsLayerTextures() { 73 void Scheduler::SetMainThreadNeedsLayerTextures() {
74 state_machine_.SetMainThreadNeedsLayerTextures(); 74 state_machine_.SetMainThreadNeedsLayerTextures();
75 ProcessScheduledActions(); 75 ProcessScheduledActions();
76 } 76 }
77 77
78 void Scheduler::FinishCommit() { 78 void Scheduler::FinishCommit() {
79 TRACE_EVENT0("cc", "Scheduler::FinishCommit"); 79 TRACE_EVENT0("cc", "Scheduler::FinishCommit");
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 SetupNextBeginFrameIfNeeded(); 248 SetupNextBeginFrameIfNeeded();
249 client_->DidAnticipatedDrawTimeChange(AnticipatedDrawTime()); 249 client_->DidAnticipatedDrawTimeChange(AnticipatedDrawTime());
250 } 250 }
251 251
252 bool Scheduler::WillDrawIfNeeded() const { 252 bool Scheduler::WillDrawIfNeeded() const {
253 return !state_machine_.PendingDrawsShouldBeAborted(); 253 return !state_machine_.PendingDrawsShouldBeAborted();
254 } 254 }
255 255
256 } // namespace cc 256 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler.h ('k') | cc/scheduler/scheduler_state_machine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698