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 <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "cc/animation/keyframed_animation_curve.h" | 10 #include "cc/animation/keyframed_animation_curve.h" |
(...skipping 6038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6049 EXPECT_EQ(1u, render_surface_layer_list_impl() | 6049 EXPECT_EQ(1u, render_surface_layer_list_impl() |
6050 ->at(1) | 6050 ->at(1) |
6051 ->render_surface() | 6051 ->render_surface() |
6052 ->layer_list() | 6052 ->layer_list() |
6053 .size()); | 6053 .size()); |
6054 | 6054 |
6055 gfx::Transform rotation_transform = identity_transform; | 6055 gfx::Transform rotation_transform = identity_transform; |
6056 rotation_transform.RotateAboutXAxis(180.0); | 6056 rotation_transform.RotateAboutXAxis(180.0); |
6057 | 6057 |
6058 render_surface->SetTransform(rotation_transform); | 6058 render_surface->SetTransform(rotation_transform); |
| 6059 root->layer_tree_impl()->property_trees()->needs_rebuild = true; |
6059 | 6060 |
6060 ExecuteCalculateDrawProperties(root); | 6061 ExecuteCalculateDrawProperties(root); |
6061 | 6062 |
6062 EXPECT_EQ(1u, render_surface_layer_list_impl()->size()); | 6063 EXPECT_EQ(1u, render_surface_layer_list_impl()->size()); |
6063 EXPECT_EQ(0u, render_surface_layer_list_impl() | 6064 EXPECT_EQ(0u, render_surface_layer_list_impl() |
6064 ->at(0) | 6065 ->at(0) |
6065 ->render_surface() | 6066 ->render_surface() |
6066 ->layer_list() | 6067 ->layer_list() |
6067 .size()); | 6068 .size()); |
6068 } | 6069 } |
(...skipping 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9125 bool root_in_rsll = | 9126 bool root_in_rsll = |
9126 std::find(rsll->begin(), rsll->end(), root) != rsll->end(); | 9127 std::find(rsll->begin(), rsll->end(), root) != rsll->end(); |
9127 EXPECT_TRUE(root_in_rsll); | 9128 EXPECT_TRUE(root_in_rsll); |
9128 bool render_surface2_in_rsll = | 9129 bool render_surface2_in_rsll = |
9129 std::find(rsll->begin(), rsll->end(), render_surface2) != rsll->end(); | 9130 std::find(rsll->begin(), rsll->end(), render_surface2) != rsll->end(); |
9130 EXPECT_FALSE(render_surface2_in_rsll); | 9131 EXPECT_FALSE(render_surface2_in_rsll); |
9131 } | 9132 } |
9132 | 9133 |
9133 } // namespace | 9134 } // namespace |
9134 } // namespace cc | 9135 } // namespace cc |
OLD | NEW |