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

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

Issue 465853004: Moving RenderSurface creation outside of CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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 <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 RenderSurfaceLayerListType* render_surface_layer_list); 89 RenderSurfaceLayerListType* render_surface_layer_list);
90 90
91 private: 91 private:
92 const gfx::Transform identity_transform_; 92 const gfx::Transform identity_transform_;
93 }; 93 };
94 94
95 typedef CalcDrawPropsInputs<Layer, RenderSurfaceLayerList> 95 typedef CalcDrawPropsInputs<Layer, RenderSurfaceLayerList>
96 CalcDrawPropsMainInputs; 96 CalcDrawPropsMainInputs;
97 typedef CalcDrawPropsInputsForTesting<Layer, RenderSurfaceLayerList> 97 typedef CalcDrawPropsInputsForTesting<Layer, RenderSurfaceLayerList>
98 CalcDrawPropsMainInputsForTesting; 98 CalcDrawPropsMainInputsForTesting;
99 static void UpdateRenderSurfaces(Layer* root_layer,
100 bool can_render_to_separate_surface,
101 const gfx::Transform& transform,
102 bool preserves_2d_axis_alignment);
103 static void UpdateRenderSurface(Layer* layer,
104 bool can_render_to_separate_surface,
105 gfx::Transform* transform,
106 bool* animation_preserves_axis_alignment);
99 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs); 107 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs);
100 108
101 typedef CalcDrawPropsInputs<LayerImpl, LayerImplList> CalcDrawPropsImplInputs; 109 typedef CalcDrawPropsInputs<LayerImpl, LayerImplList> CalcDrawPropsImplInputs;
102 typedef CalcDrawPropsInputsForTesting<LayerImpl, LayerImplList> 110 typedef CalcDrawPropsInputsForTesting<LayerImpl, LayerImplList>
103 CalcDrawPropsImplInputsForTesting; 111 CalcDrawPropsImplInputsForTesting;
104 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); 112 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs);
105 113
106 template <typename LayerType> 114 template <typename LayerType>
107 static bool RenderSurfaceContributesToTarget(LayerType*, 115 static bool RenderSurfaceContributesToTarget(LayerType*,
108 int target_surface_layer_id); 116 int target_surface_layer_id);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 false, 263 false,
256 render_surface_layer_list, 264 render_surface_layer_list,
257 0) { 265 0) {
258 DCHECK(root_layer); 266 DCHECK(root_layer);
259 DCHECK(render_surface_layer_list); 267 DCHECK(render_surface_layer_list);
260 } 268 }
261 269
262 } // namespace cc 270 } // namespace cc
263 271
264 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 272 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698