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

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

Issue 2051013002: cc : Push layer lists instead of layer tree at commit and activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('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/trees/layer_tree_host_common.h" 5 #include "cc/trees/layer_tree_host_common.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 TRACE_EVENT_ASYNC_END1( 669 TRACE_EVENT_ASYNC_END1(
670 "cdp.perf", "jitter", 670 "cdp.perf", "jitter",
671 inputs->root_layer->layer_tree_impl()->source_frame_number(), "value", 671 inputs->root_layer->layer_tree_impl()->source_frame_number(), "value",
672 jitter); 672 jitter);
673 } 673 }
674 } 674 }
675 } 675 }
676 676
677 void LayerTreeHostCommon::CalculateDrawPropertiesForTesting( 677 void LayerTreeHostCommon::CalculateDrawPropertiesForTesting(
678 CalcDrawPropsImplInputsForTesting* inputs) { 678 CalcDrawPropsImplInputsForTesting* inputs) {
679 inputs->root_layer->layer_tree_impl()->BuildLayerListForTesting();
679 PropertyTreeBuilder::PreCalculateMetaInformationForTesting( 680 PropertyTreeBuilder::PreCalculateMetaInformationForTesting(
680 inputs->root_layer); 681 inputs->root_layer);
681 CalculateDrawPropertiesInternal(inputs, BUILD_PROPERTY_TREES_IF_NEEDED); 682 CalculateDrawPropertiesInternal(inputs, BUILD_PROPERTY_TREES_IF_NEEDED);
682 } 683 }
683 684
684 PropertyTrees* GetPropertyTrees(Layer* layer) { 685 PropertyTrees* GetPropertyTrees(Layer* layer) {
685 return layer->layer_tree_host()->property_trees(); 686 return layer->layer_tree_host()->property_trees();
686 } 687 }
687 688
688 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { 689 PropertyTrees* GetPropertyTrees(LayerImpl* layer) {
689 return layer->layer_tree_impl()->property_trees(); 690 return layer->layer_tree_impl()->property_trees();
690 } 691 }
691 692
692 } // namespace cc 693 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698