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

Side by Side Diff: cc/layers/layer_perftest.cc

Issue 1783613004: CC Animation: Erase cc::LayerSettings everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eraseandroid
Patch Set: Rebase. Created 4 years, 9 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/layers/layer.cc ('k') | cc/layers/layer_position_constraint_unittest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/layers/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include "base/thread_task_runner_handle.h" 7 #include "base/thread_task_runner_handle.h"
8 #include "cc/debug/lap_timer.h" 8 #include "cc/debug/lap_timer.h"
9 #include "cc/layers/layer_settings.h"
10 #include "cc/test/fake_impl_task_runner_provider.h" 9 #include "cc/test/fake_impl_task_runner_provider.h"
11 #include "cc/test/fake_layer_tree_host.h" 10 #include "cc/test/fake_layer_tree_host.h"
12 #include "cc/test/fake_layer_tree_host_client.h" 11 #include "cc/test/fake_layer_tree_host_client.h"
13 #include "cc/test/fake_layer_tree_host_impl.h" 12 #include "cc/test/fake_layer_tree_host_impl.h"
14 #include "cc/test/test_task_graph_runner.h" 13 #include "cc/test/test_task_graph_runner.h"
15 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
16 #include "testing/perf/perf_test.h" 15 #include "testing/perf/perf_test.h"
17 16
18 namespace cc { 17 namespace cc {
19 namespace { 18 namespace {
(...skipping 30 matching lines...) Expand all
50 TestSharedBitmapManager shared_bitmap_manager_; 49 TestSharedBitmapManager shared_bitmap_manager_;
51 TestTaskGraphRunner task_graph_runner_; 50 TestTaskGraphRunner task_graph_runner_;
52 FakeLayerTreeHostImpl host_impl_; 51 FakeLayerTreeHostImpl host_impl_;
53 52
54 FakeLayerTreeHostClient fake_client_; 53 FakeLayerTreeHostClient fake_client_;
55 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; 54 scoped_ptr<FakeLayerTreeHost> layer_tree_host_;
56 LapTimer timer_; 55 LapTimer timer_;
57 }; 56 };
58 57
59 TEST_F(LayerPerfTest, PushPropertiesTo) { 58 TEST_F(LayerPerfTest, PushPropertiesTo) {
60 scoped_refptr<Layer> test_layer = Layer::Create(LayerSettings()); 59 scoped_refptr<Layer> test_layer = Layer::Create();
61 scoped_ptr<LayerImpl> impl_layer = 60 scoped_ptr<LayerImpl> impl_layer =
62 LayerImpl::Create(host_impl_.active_tree(), 1); 61 LayerImpl::Create(host_impl_.active_tree(), 1);
63 62
64 layer_tree_host_->SetRootLayer(test_layer); 63 layer_tree_host_->SetRootLayer(test_layer);
65 64
66 float transform_origin_z = 0; 65 float transform_origin_z = 0;
67 bool scrollable = true; 66 bool scrollable = true;
68 bool contents_opaque = true; 67 bool contents_opaque = true;
69 bool double_sided = true; 68 bool double_sided = true;
70 bool hide_layer_and_subtree = true; 69 bool hide_layer_and_subtree = true;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 "", 110 "",
112 "props_didnt_change", 111 "props_didnt_change",
113 timer_.LapsPerSecond(), 112 timer_.LapsPerSecond(),
114 "runs/s", 113 "runs/s",
115 true); 114 true);
116 } 115 }
117 116
118 117
119 } // namespace 118 } // namespace
120 } // namespace cc 119 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698