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

Side by Side Diff: cc/animation/animation_host_perftest.cc

Issue 2324273002: Remove external begin frame source parameter and settings (Closed)
Patch Set: Add back comment, remove more febfs includes Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/animation/animation_host.h" 5 #include "cc/animation/animation_host.h"
6 6
7 #include "base/threading/thread_task_runner_handle.h" 7 #include "base/threading/thread_task_runner_handle.h"
8 #include "cc/animation/animation_id_provider.h" 8 #include "cc/animation/animation_id_provider.h"
9 #include "cc/animation/animation_player.h" 9 #include "cc/animation/animation_player.h"
10 #include "cc/animation/animation_timeline.h" 10 #include "cc/animation/animation_timeline.h"
(...skipping 17 matching lines...) Expand all
28 first_timeline_id_(), 28 first_timeline_id_(),
29 last_timeline_id_(), 29 last_timeline_id_(),
30 first_player_id_(), 30 first_player_id_(),
31 last_player_id_() {} 31 last_player_id_() {}
32 32
33 void SetUp() override { 33 void SetUp() override {
34 LayerTreeSettings settings; 34 LayerTreeSettings settings;
35 layer_tree_host_ = 35 layer_tree_host_ =
36 FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_, settings); 36 FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_, settings);
37 layer_tree_host_->InitializeSingleThreaded( 37 layer_tree_host_->InitializeSingleThreaded(
38 &single_thread_client_, base::ThreadTaskRunnerHandle::Get(), nullptr); 38 &single_thread_client_, base::ThreadTaskRunnerHandle::Get());
39 39
40 root_layer_ = Layer::Create(); 40 root_layer_ = Layer::Create();
41 layer_tree_host_->SetRootLayer(root_layer_); 41 layer_tree_host_->SetRootLayer(root_layer_);
42 42
43 root_layer_impl_ = layer_tree_host_->CommitAndCreateLayerImplTree(); 43 root_layer_impl_ = layer_tree_host_->CommitAndCreateLayerImplTree();
44 } 44 }
45 45
46 void TearDown() override { 46 void TearDown() override {
47 root_layer_ = nullptr; 47 root_layer_ = nullptr;
48 root_layer_impl_ = nullptr; 48 root_layer_impl_ = nullptr;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 CreateTimelines(10); 161 CreateTimelines(10);
162 DoTest(); 162 DoTest();
163 } 163 }
164 164
165 TEST_F(AnimationHostPerfTest, Push1000TimelinesPropertiesTo) { 165 TEST_F(AnimationHostPerfTest, Push1000TimelinesPropertiesTo) {
166 CreateTimelines(1000); 166 CreateTimelines(1000);
167 DoTest(); 167 DoTest();
168 } 168 }
169 169
170 } // namespace cc 170 } // namespace cc
OLDNEW
« no previous file with comments | « blimp/client/support/compositor/blimp_layer_tree_settings.cc ('k') | cc/debug/micro_benchmark_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698