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/trees/layer_tree_host.cc

Issue 337693005: cc: Control defer_commits logic by Scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years 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 | Annotate | Revision Log
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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 #include <string> 9 #include <string>
10 10
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 } 475 }
476 476
477 void LayerTreeHost::FinishAllRendering() { 477 void LayerTreeHost::FinishAllRendering() {
478 proxy_->FinishAllRendering(); 478 proxy_->FinishAllRendering();
479 } 479 }
480 480
481 void LayerTreeHost::SetDeferCommits(bool defer_commits) { 481 void LayerTreeHost::SetDeferCommits(bool defer_commits) {
482 proxy_->SetDeferCommits(defer_commits); 482 proxy_->SetDeferCommits(defer_commits);
483 } 483 }
484 484
485 void LayerTreeHost::DidDeferCommit() {}
486
487 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { 485 void LayerTreeHost::SetNeedsDisplayOnAllLayers() {
488 std::stack<Layer*> layer_stack; 486 std::stack<Layer*> layer_stack;
489 layer_stack.push(root_layer()); 487 layer_stack.push(root_layer());
490 while (!layer_stack.empty()) { 488 while (!layer_stack.empty()) {
491 Layer* current_layer = layer_stack.top(); 489 Layer* current_layer = layer_stack.top();
492 layer_stack.pop(); 490 layer_stack.pop();
493 current_layer->SetNeedsDisplay(); 491 current_layer->SetNeedsDisplay();
494 for (unsigned int i = 0; i < current_layer->children().size(); i++) { 492 for (unsigned int i = 0; i < current_layer->children().size(); i++) {
495 layer_stack.push(current_layer->child_at(i)); 493 layer_stack.push(current_layer->child_at(i));
496 } 494 }
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 bool children_need_begin_frames) const { 1355 bool children_need_begin_frames) const {
1358 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); 1356 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames);
1359 } 1357 }
1360 1358
1361 void LayerTreeHost::SendBeginFramesToChildren( 1359 void LayerTreeHost::SendBeginFramesToChildren(
1362 const BeginFrameArgs& args) const { 1360 const BeginFrameArgs& args) const {
1363 client_->SendBeginFramesToChildren(args); 1361 client_->SendBeginFramesToChildren(args);
1364 } 1362 }
1365 1363
1366 } // namespace cc 1364 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698