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

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

Issue 2106273002: cc: Change how/when we build layer list/property tress in tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/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();
680 PropertyTreeBuilder::PreCalculateMetaInformationForTesting( 679 PropertyTreeBuilder::PreCalculateMetaInformationForTesting(
681 inputs->root_layer); 680 inputs->root_layer);
682 CalculateDrawPropertiesInternal(inputs, BUILD_PROPERTY_TREES_IF_NEEDED); 681 CalculateDrawPropertiesInternal(inputs, BUILD_PROPERTY_TREES_IF_NEEDED);
683 } 682 }
684 683
685 PropertyTrees* GetPropertyTrees(Layer* layer) { 684 PropertyTrees* GetPropertyTrees(Layer* layer) {
686 return layer->layer_tree_host()->property_trees(); 685 return layer->layer_tree_host()->property_trees();
687 } 686 }
688 687
689 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { 688 PropertyTrees* GetPropertyTrees(LayerImpl* layer) {
690 return layer->layer_tree_impl()->property_trees(); 689 return layer->layer_tree_impl()->property_trees();
691 } 690 }
692 691
693 } // namespace cc 692 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698