OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/layers/layer_position_constraint.h" | 5 #include "cc/layers/layer_position_constraint.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
10 #include "cc/layers/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
11 #include "cc/test/fake_layer_tree_host.h" | 11 #include "cc/test/fake_layer_tree_host.h" |
| 12 #include "cc/test/fake_proxy.h" |
12 #include "cc/test/geometry_test_utils.h" | 13 #include "cc/test/geometry_test_utils.h" |
13 #include "cc/test/test_task_graph_runner.h" | 14 #include "cc/test/test_task_graph_runner.h" |
14 #include "cc/trees/layer_tree_host_common.h" | 15 #include "cc/trees/layer_tree_host_common.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 | 17 |
17 namespace cc { | 18 namespace cc { |
18 namespace { | 19 namespace { |
19 | 20 |
20 class LayerWithForcedDrawsContent : public Layer { | 21 class LayerWithForcedDrawsContent : public Layer { |
21 public: | 22 public: |
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 expected_fixed_child_transform.Translate(20.0, 20.0); | 1108 expected_fixed_child_transform.Translate(20.0, 20.0); |
1108 | 1109 |
1109 EXPECT_TRANSFORMATION_MATRIX_EQ(expected_scroll_layer_transform, | 1110 EXPECT_TRANSFORMATION_MATRIX_EQ(expected_scroll_layer_transform, |
1110 scroll_layer_impl_->draw_transform()); | 1111 scroll_layer_impl_->draw_transform()); |
1111 EXPECT_TRANSFORMATION_MATRIX_EQ(expected_fixed_child_transform, | 1112 EXPECT_TRANSFORMATION_MATRIX_EQ(expected_fixed_child_transform, |
1112 fixed_child_impl->draw_transform()); | 1113 fixed_child_impl->draw_transform()); |
1113 } | 1114 } |
1114 | 1115 |
1115 } // namespace | 1116 } // namespace |
1116 } // namespace cc | 1117 } // namespace cc |
OLD | NEW |