OLD | NEW |
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 #include "cc/trees/layer_tree_host_common.h" | 5 #include "cc/trees/layer_tree_host_common.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "ui/gfx/geometry/vector2d_conversions.h" | 56 #include "ui/gfx/geometry/vector2d_conversions.h" |
57 #include "ui/gfx/transform.h" | 57 #include "ui/gfx/transform.h" |
58 | 58 |
59 namespace cc { | 59 namespace cc { |
60 namespace { | 60 namespace { |
61 | 61 |
62 class VerifyTreeCalcsLayerTreeSettings : public LayerTreeSettings { | 62 class VerifyTreeCalcsLayerTreeSettings : public LayerTreeSettings { |
63 public: | 63 public: |
64 VerifyTreeCalcsLayerTreeSettings() { | 64 VerifyTreeCalcsLayerTreeSettings() { |
65 verify_transform_tree_calculations = true; | 65 verify_transform_tree_calculations = true; |
| 66 verify_clip_tree_calculations = true; |
66 } | 67 } |
67 }; | 68 }; |
68 | 69 |
69 class LayerTreeHostCommonTestBase : public LayerTestCommon::LayerImplTest { | 70 class LayerTreeHostCommonTestBase : public LayerTestCommon::LayerImplTest { |
70 public: | 71 public: |
71 LayerTreeHostCommonTestBase() | 72 LayerTreeHostCommonTestBase() |
72 : LayerTestCommon::LayerImplTest(VerifyTreeCalcsLayerTreeSettings()) {} | 73 : LayerTestCommon::LayerImplTest(VerifyTreeCalcsLayerTreeSettings()) {} |
73 explicit LayerTreeHostCommonTestBase(const LayerTreeSettings& settings) | 74 explicit LayerTreeHostCommonTestBase(const LayerTreeSettings& settings) |
74 : LayerTestCommon::LayerImplTest(settings) {} | 75 : LayerTestCommon::LayerImplTest(settings) {} |
75 | 76 |
(...skipping 9522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9598 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index()); | 9599 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index()); |
9599 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index()); | 9600 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index()); |
9600 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index()); | 9601 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index()); |
9601 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index()); | 9602 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index()); |
9602 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index()); | 9603 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index()); |
9603 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index()); | 9604 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index()); |
9604 } | 9605 } |
9605 | 9606 |
9606 } // namespace | 9607 } // namespace |
9607 } // namespace cc | 9608 } // namespace cc |
OLD | NEW |