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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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_common.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 #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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 RenderSurfaceLayerListType* render_surface_layer_list); 99 RenderSurfaceLayerListType* render_surface_layer_list);
100 100
101 private: 101 private:
102 const gfx::Transform identity_transform_; 102 const gfx::Transform identity_transform_;
103 }; 103 };
104 104
105 typedef CalcDrawPropsInputs<Layer, RenderSurfaceLayerList> 105 typedef CalcDrawPropsInputs<Layer, RenderSurfaceLayerList>
106 CalcDrawPropsMainInputs; 106 CalcDrawPropsMainInputs;
107 typedef CalcDrawPropsInputsForTesting<Layer, RenderSurfaceLayerList> 107 typedef CalcDrawPropsInputsForTesting<Layer, RenderSurfaceLayerList>
108 CalcDrawPropsMainInputsForTesting; 108 CalcDrawPropsMainInputsForTesting;
109 static void UpdateRenderSurfaces(Layer* root_layer,
110 bool can_render_to_separate_surface,
111 const gfx::Transform& transform,
112 bool preserves_2d_axis_alignment);
113 static void UpdateRenderSurface(Layer* layer,
114 bool can_render_to_separate_surface,
115 gfx::Transform* transform,
116 bool* animation_preserves_axis_alignment);
109 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs); 117 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs);
110 118
111 typedef CalcDrawPropsInputs<LayerImpl, LayerImplList> CalcDrawPropsImplInputs; 119 typedef CalcDrawPropsInputs<LayerImpl, LayerImplList> CalcDrawPropsImplInputs;
112 typedef CalcDrawPropsInputsForTesting<LayerImpl, LayerImplList> 120 typedef CalcDrawPropsInputsForTesting<LayerImpl, LayerImplList>
113 CalcDrawPropsImplInputsForTesting; 121 CalcDrawPropsImplInputsForTesting;
114 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); 122 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs);
115 123
116 template <typename LayerType> 124 template <typename LayerType>
117 static bool RenderSurfaceContributesToTarget(LayerType*, 125 static bool RenderSurfaceContributesToTarget(LayerType*,
118 int target_surface_layer_id); 126 int target_surface_layer_id);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 true, 280 true,
273 render_surface_layer_list, 281 render_surface_layer_list,
274 0) { 282 0) {
275 DCHECK(root_layer); 283 DCHECK(root_layer);
276 DCHECK(render_surface_layer_list); 284 DCHECK(render_surface_layer_list);
277 } 285 }
278 286
279 } // namespace cc 287 } // namespace cc
280 288
281 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 289 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698