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

Side by Side Diff: cc/trees/layer_tree.cc

Issue 2323423002: cc: Add SwapPromiseManager and SurfaceSequenceGenerator. (Closed)
Patch Set: Created 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.h" 5 #include "cc/trees/layer_tree.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "cc/animation/animation_host.h" 9 #include "cc/animation/animation_host.h"
10 #include "cc/input/page_scale_animation.h" 10 #include "cc/input/page_scale_animation.h"
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 713
714 LayerListReverseIterator<Layer> LayerTree::rend() { 714 LayerListReverseIterator<Layer> LayerTree::rend() {
715 return LayerListReverseIterator<Layer>(nullptr); 715 return LayerListReverseIterator<Layer>(nullptr);
716 } 716 }
717 717
718 void LayerTree::SetNeedsDisplayOnAllLayers() { 718 void LayerTree::SetNeedsDisplayOnAllLayers() {
719 for (auto* layer : *this) 719 for (auto* layer : *this)
720 layer->SetNeedsDisplay(); 720 layer->SetNeedsDisplay();
721 } 721 }
722 722
723 SwapPromiseManager* LayerTree::GetSwapPromiseManager() const {
724 return layer_tree_host_->GetSwapPromiseManager();
725 }
726
727 SurfaceSequenceGenerator* LayerTree::GetSurfaceSequenceGenerator() const {
728 return layer_tree_host_->GetSurfaceSequenceGenerator();
729 }
730
723 } // namespace cc 731 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698