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

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

Issue 2650303002: cc: Remove the LayerTreeHost abstraction. (Closed)
Patch Set: missed ui Created 3 years, 11 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/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_scroll.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 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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "cc/animation/animation_curve.h" 9 #include "cc/animation/animation_curve.h"
10 #include "cc/animation/animation_host.h" 10 #include "cc/animation/animation_host.h"
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 } 1640 }
1641 1641
1642 void BeginTest() override { 1642 void BeginTest() override {
1643 PostAddLongAnimationToMainThreadPlayer(player_.get()); 1643 PostAddLongAnimationToMainThreadPlayer(player_.get());
1644 } 1644 }
1645 1645
1646 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 1646 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
1647 TargetProperty::Type target_property, 1647 TargetProperty::Type target_property,
1648 int group) override { 1648 int group) override {
1649 called_animation_started_ = true; 1649 called_animation_started_ = true;
1650 layer_tree_host_in_process()->AnimateLayers( 1650 layer_tree_host()->AnimateLayers(base::TimeTicks::FromInternalValue(
1651 base::TimeTicks::FromInternalValue( 1651 std::numeric_limits<int64_t>::max()));
1652 std::numeric_limits<int64_t>::max()));
1653 PostSetNeedsCommitToMainThread(); 1652 PostSetNeedsCommitToMainThread();
1654 } 1653 }
1655 1654
1656 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 1655 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
1657 TargetProperty::Type target_property, 1656 TargetProperty::Type target_property,
1658 int group) override { 1657 int group) override {
1659 called_animation_finished_ = true; 1658 called_animation_finished_ = true;
1660 EndTest(); 1659 EndTest();
1661 } 1660 }
1662 1661
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 private: 1861 private:
1863 scoped_refptr<Layer> layer_; 1862 scoped_refptr<Layer> layer_;
1864 FakeContentLayerClient client_; 1863 FakeContentLayerClient client_;
1865 }; 1864 };
1866 1865
1867 MULTI_THREAD_TEST_F( 1866 MULTI_THREAD_TEST_F(
1868 LayerTreeHostAnimationTestRebuildPropertyTreesOnAnimationSetNeedsCommit); 1867 LayerTreeHostAnimationTestRebuildPropertyTreesOnAnimationSetNeedsCommit);
1869 1868
1870 } // namespace 1869 } // namespace
1871 } // namespace cc 1870 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_scroll.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698