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

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

Issue 1921503005: cc: Move main thread hierarchy dependencies into PropertyTreeBuilder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix telemetry unittest problem Created 4 years, 7 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 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_
6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <limits> 10 #include <limits>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 int current_render_surface_layer_list_id); 114 int current_render_surface_layer_list_id);
115 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer, 115 CalcDrawPropsImplInputsForTesting(LayerImpl* root_layer,
116 const gfx::Size& device_viewport_size, 116 const gfx::Size& device_viewport_size,
117 LayerImplList* render_surface_layer_list, 117 LayerImplList* render_surface_layer_list,
118 int current_render_surface_layer_list_id); 118 int current_render_surface_layer_list_id);
119 }; 119 };
120 120
121 static int CalculateLayerJitter(LayerImpl* scrolling_layer); 121 static int CalculateLayerJitter(LayerImpl* scrolling_layer);
122 static void CalculateDrawPropertiesForTesting( 122 static void CalculateDrawPropertiesForTesting(
123 CalcDrawPropsMainInputsForTesting* inputs); 123 CalcDrawPropsMainInputsForTesting* inputs);
124 static void PreCalculateMetaInformation(Layer* root_layer);
125 static void PreCalculateMetaInformationForTesting(LayerImpl* root_layer);
126 static void PreCalculateMetaInformationForTesting(Layer* root_layer);
127 124
128 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); 125 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs);
129 static void CalculateDrawProperties( 126 static void CalculateDrawProperties(
130 CalcDrawPropsImplInputsForTesting* inputs); 127 CalcDrawPropsImplInputsForTesting* inputs);
131 128
132 template <typename Function> 129 template <typename Function>
133 static void CallFunctionForEveryLayer(LayerTreeHost* layer, 130 static void CallFunctionForEveryLayer(LayerTreeHost* layer,
134 const Function& function); 131 const Function& function);
135 132
136 template <typename Function> 133 template <typename Function>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 for (auto* layer : *host_impl) 191 for (auto* layer : *host_impl)
195 CallFunctionForLayer(layer, function); 192 CallFunctionForLayer(layer, function);
196 } 193 }
197 194
198 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); 195 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer);
199 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); 196 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer);
200 197
201 } // namespace cc 198 } // namespace cc
202 199
203 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 200 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698