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.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1371 class LayerTreeHostTestTransformTreeDamageIsUpdated : public LayerTreeHostTest { | 1371 class LayerTreeHostTestTransformTreeDamageIsUpdated : public LayerTreeHostTest { |
1372 protected: | 1372 protected: |
1373 void SetupTree() override { | 1373 void SetupTree() override { |
1374 root_ = Layer::Create(); | 1374 root_ = Layer::Create(); |
1375 child_ = Layer::Create(); | 1375 child_ = Layer::Create(); |
1376 grand_child_ = Layer::Create(); | 1376 grand_child_ = Layer::Create(); |
1377 | 1377 |
1378 root_->SetBounds(gfx::Size(50, 50)); | 1378 root_->SetBounds(gfx::Size(50, 50)); |
1379 | 1379 |
1380 // Make sure child is registerd for animation. | 1380 // Make sure child is registerd for animation. |
1381 child_->SetElementId(ElementId(2, 0)); | 1381 child_->SetElementId(ElementId(2)); |
1382 | 1382 |
1383 // Make sure child and grand_child have transform nodes. | 1383 // Make sure child and grand_child have transform nodes. |
1384 gfx::Transform rotation; | 1384 gfx::Transform rotation; |
1385 rotation.RotateAboutZAxis(45.0); | 1385 rotation.RotateAboutZAxis(45.0); |
1386 child_->SetTransform(rotation); | 1386 child_->SetTransform(rotation); |
1387 grand_child_->SetTransform(rotation); | 1387 grand_child_->SetTransform(rotation); |
1388 | 1388 |
1389 root_->AddChild(child_); | 1389 root_->AddChild(child_); |
1390 child_->AddChild(grand_child_); | 1390 child_->AddChild(grand_child_); |
1391 layer_tree_host()->SetRootLayer(root_); | 1391 layer_tree_host()->SetRootLayer(root_); |
(...skipping 6253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7645 void AfterTest() override {} | 7645 void AfterTest() override {} |
7646 | 7646 |
7647 private: | 7647 private: |
7648 bool received_ack_ = false; | 7648 bool received_ack_ = false; |
7649 }; | 7649 }; |
7650 | 7650 |
7651 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestDiscardAckAfterRelease); | 7651 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestDiscardAckAfterRelease); |
7652 | 7652 |
7653 } // namespace | 7653 } // namespace |
7654 } // namespace cc | 7654 } // namespace cc |
OLD | NEW |