| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_iterator.h" | 5 #include "cc/layers/layer_iterator.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "cc/layers/layer.h" | 10 #include "cc/layers/layer.h" |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 TestLayerImpl* root_ptr = root_layer.get(); | 218 TestLayerImpl* root_ptr = root_layer.get(); |
| 219 TestLayerImpl* root1_ptr = root1.get(); | 219 TestLayerImpl* root1_ptr = root1.get(); |
| 220 TestLayerImpl* root2_ptr = root2.get(); | 220 TestLayerImpl* root2_ptr = root2.get(); |
| 221 TestLayerImpl* root3_ptr = root3.get(); | 221 TestLayerImpl* root3_ptr = root3.get(); |
| 222 TestLayerImpl* root21_ptr = root21.get(); | 222 TestLayerImpl* root21_ptr = root21.get(); |
| 223 TestLayerImpl* root22_ptr = root22.get(); | 223 TestLayerImpl* root22_ptr = root22.get(); |
| 224 TestLayerImpl* root23_ptr = root23.get(); | 224 TestLayerImpl* root23_ptr = root23.get(); |
| 225 TestLayerImpl* root221_ptr = root221.get(); | 225 TestLayerImpl* root221_ptr = root221.get(); |
| 226 TestLayerImpl* root231_ptr = root231.get(); | 226 TestLayerImpl* root231_ptr = root231.get(); |
| 227 | 227 |
| 228 root22->SetForceRenderSurface(true); | 228 root22->test_properties()->force_render_surface = true; |
| 229 root23->SetForceRenderSurface(true); | 229 root23->test_properties()->force_render_surface = true; |
| 230 root2->SetForceRenderSurface(true); | 230 root2->test_properties()->force_render_surface = true; |
| 231 root22->AddChild(std::move(root221)); | 231 root22->AddChild(std::move(root221)); |
| 232 root23->AddChild(std::move(root231)); | 232 root23->AddChild(std::move(root231)); |
| 233 root2->SetDrawsContent(false); | 233 root2->SetDrawsContent(false); |
| 234 root2->AddChild(std::move(root21)); | 234 root2->AddChild(std::move(root21)); |
| 235 root2->AddChild(std::move(root22)); | 235 root2->AddChild(std::move(root22)); |
| 236 root2->AddChild(std::move(root23)); | 236 root2->AddChild(std::move(root23)); |
| 237 root_layer->AddChild(std::move(root1)); | 237 root_layer->AddChild(std::move(root1)); |
| 238 root_layer->AddChild(std::move(root2)); | 238 root_layer->AddChild(std::move(root2)); |
| 239 root_layer->AddChild(std::move(root3)); | 239 root_layer->AddChild(std::move(root3)); |
| 240 | 240 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 254 EXPECT_COUNT(root21_ptr, -1, -1, 9); | 254 EXPECT_COUNT(root21_ptr, -1, -1, 9); |
| 255 EXPECT_COUNT(root22_ptr, 7, 8, 6); | 255 EXPECT_COUNT(root22_ptr, 7, 8, 6); |
| 256 EXPECT_COUNT(root221_ptr, -1, -1, 5); | 256 EXPECT_COUNT(root221_ptr, -1, -1, 5); |
| 257 EXPECT_COUNT(root23_ptr, 3, 4, 2); | 257 EXPECT_COUNT(root23_ptr, 3, 4, 2); |
| 258 EXPECT_COUNT(root231_ptr, -1, -1, 1); | 258 EXPECT_COUNT(root231_ptr, -1, -1, 1); |
| 259 EXPECT_COUNT(root3_ptr, -1, -1, 0); | 259 EXPECT_COUNT(root3_ptr, -1, -1, 0); |
| 260 } | 260 } |
| 261 | 261 |
| 262 } // namespace | 262 } // namespace |
| 263 } // namespace cc | 263 } // namespace cc |
| OLD | NEW |