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

Side by Side Diff: cc/test/layer_tree_host_common_test.h

Issue 1918593002: cc : Stop pushing properties not used by LayerImpl to LayerImpl (3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/test/fake_layer_tree_host_impl.cc ('k') | cc/test/layer_tree_host_common_test.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_
6 #define CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ 6 #define CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 23 matching lines...) Expand all
34 protected: 34 protected:
35 explicit LayerTreeHostCommonTestBase(const LayerTreeSettings& settings); 35 explicit LayerTreeHostCommonTestBase(const LayerTreeSettings& settings);
36 virtual ~LayerTreeHostCommonTestBase(); 36 virtual ~LayerTreeHostCommonTestBase();
37 37
38 template <typename LayerType> 38 template <typename LayerType>
39 void SetLayerPropertiesForTestingInternal( 39 void SetLayerPropertiesForTestingInternal(
40 LayerType* layer, 40 LayerType* layer,
41 const gfx::Transform& transform, 41 const gfx::Transform& transform,
42 const gfx::PointF& position, 42 const gfx::PointF& position,
43 const gfx::Size& bounds, 43 const gfx::Size& bounds,
44 bool flatten_transform,
45 bool is_3d_sorted) { 44 bool is_3d_sorted) {
46 layer->SetTransform(transform); 45 layer->SetTransform(transform);
47 layer->SetPosition(position); 46 layer->SetPosition(position);
48 layer->SetBounds(bounds); 47 layer->SetBounds(bounds);
49 layer->SetShouldFlattenTransform(flatten_transform);
50 layer->Set3dSortingContextId(is_3d_sorted ? 1 : 0); 48 layer->Set3dSortingContextId(is_3d_sorted ? 1 : 0);
51 } 49 }
52 50
53 void SetLayerPropertiesForTesting(Layer* layer, 51 void SetLayerPropertiesForTesting(Layer* layer,
54 const gfx::Transform& transform, 52 const gfx::Transform& transform,
55 const gfx::Point3F& transform_origin, 53 const gfx::Point3F& transform_origin,
56 const gfx::PointF& position, 54 const gfx::PointF& position,
57 const gfx::Size& bounds, 55 const gfx::Size& bounds,
58 bool flatten_transform, 56 bool flatten_transform,
59 bool is_3d_sorted); 57 bool is_3d_sorted);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 ->scroll_tree.SetScrollOffsetDeltaForTesting(layer_impl->id(), 160 ->scroll_tree.SetScrollOffsetDeltaForTesting(layer_impl->id(),
163 delta)) 161 delta))
164 layer_impl->layer_tree_impl()->DidUpdateScrollOffset( 162 layer_impl->layer_tree_impl()->DidUpdateScrollOffset(
165 layer_impl->id(), layer_impl->transform_tree_index()); 163 layer_impl->id(), layer_impl->transform_tree_index());
166 } 164 }
167 }; 165 };
168 166
169 } // namespace cc 167 } // namespace cc
170 168
171 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ 169 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_impl.cc ('k') | cc/test/layer_tree_host_common_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698