Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Side by Side Diff: cc/trees/layer_tree_host_unittest.cc

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: Merge branch 'master' into secondaryid Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/element_id.cc ('k') | cc/trees/layer_tree_host_unittest_animation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 6344 matching lines...) Expand 10 before | Expand all | Expand 10 after
7736 void AfterTest() override {} 7736 void AfterTest() override {}
7737 7737
7738 private: 7738 private:
7739 bool received_ack_ = false; 7739 bool received_ack_ = false;
7740 }; 7740 };
7741 7741
7742 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestDiscardAckAfterRelease); 7742 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestDiscardAckAfterRelease);
7743 7743
7744 } // namespace 7744 } // namespace
7745 } // namespace cc 7745 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/element_id.cc ('k') | cc/trees/layer_tree_host_unittest_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698