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

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

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: none 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
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 ElementId element_id;
1382 element_id.id = 2;
1383 child_->SetElementId(element_id);
1382 1384
1383 // Make sure child and grand_child have transform nodes. 1385 // Make sure child and grand_child have transform nodes.
1384 gfx::Transform rotation; 1386 gfx::Transform rotation;
1385 rotation.RotateAboutZAxis(45.0); 1387 rotation.RotateAboutZAxis(45.0);
1386 child_->SetTransform(rotation); 1388 child_->SetTransform(rotation);
1387 grand_child_->SetTransform(rotation); 1389 grand_child_->SetTransform(rotation);
1388 1390
1389 root_->AddChild(child_); 1391 root_->AddChild(child_);
1390 child_->AddChild(grand_child_); 1392 child_->AddChild(grand_child_);
1391 layer_tree_host()->SetRootLayer(root_); 1393 layer_tree_host()->SetRootLayer(root_);
(...skipping 6331 matching lines...) Expand 10 before | Expand all | Expand 10 after
7723 void AfterTest() override {} 7725 void AfterTest() override {}
7724 7726
7725 private: 7727 private:
7726 bool received_ack_ = false; 7728 bool received_ack_ = false;
7727 }; 7729 };
7728 7730
7729 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestDiscardAckAfterRelease); 7731 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestDiscardAckAfterRelease);
7730 7732
7731 } // namespace 7733 } // namespace
7732 } // namespace cc 7734 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698