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

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

Issue 1122393003: CC: Plumb LayerSettings parameter for cc::Layer construction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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/layers/layer_iterator_unittest.cc ('k') | cc/layers/layer_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/resources/layer_painter.h" 9 #include "cc/resources/layer_painter.h"
10 #include "cc/test/fake_impl_proxy.h" 10 #include "cc/test/fake_impl_proxy.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 TestSharedBitmapManager shared_bitmap_manager_; 53 TestSharedBitmapManager shared_bitmap_manager_;
54 TestTaskGraphRunner task_graph_runner_; 54 TestTaskGraphRunner task_graph_runner_;
55 FakeLayerTreeHostImpl host_impl_; 55 FakeLayerTreeHostImpl host_impl_;
56 56
57 FakeLayerTreeHostClient fake_client_; 57 FakeLayerTreeHostClient fake_client_;
58 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; 58 scoped_ptr<FakeLayerTreeHost> layer_tree_host_;
59 LapTimer timer_; 59 LapTimer timer_;
60 }; 60 };
61 61
62 TEST_F(LayerPerfTest, PushPropertiesTo) { 62 TEST_F(LayerPerfTest, PushPropertiesTo) {
63 scoped_refptr<Layer> test_layer = Layer::Create(); 63 scoped_refptr<Layer> test_layer = Layer::Create(LayerSettings());
64 scoped_ptr<LayerImpl> impl_layer = 64 scoped_ptr<LayerImpl> impl_layer =
65 LayerImpl::Create(host_impl_.active_tree(), 1); 65 LayerImpl::Create(host_impl_.active_tree(), 1);
66 66
67 layer_tree_host_->SetRootLayer(test_layer); 67 layer_tree_host_->SetRootLayer(test_layer);
68 68
69 float transform_origin_z = 0; 69 float transform_origin_z = 0;
70 bool scrollable = true; 70 bool scrollable = true;
71 bool contents_opaque = true; 71 bool contents_opaque = true;
72 bool double_sided = true; 72 bool double_sided = true;
73 bool hide_layer_and_subtree = true; 73 bool hide_layer_and_subtree = true;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 "", 114 "",
115 "props_didnt_change", 115 "props_didnt_change",
116 timer_.LapsPerSecond(), 116 timer_.LapsPerSecond(),
117 "runs/s", 117 "runs/s",
118 true); 118 true);
119 } 119 }
120 120
121 121
122 } // namespace 122 } // namespace
123 } // namespace cc 123 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_iterator_unittest.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698