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

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

Issue 1177033008: cc: Turn impl_side_painting and use_one_copy on in LayerTreeSettings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implon: fixwebkittests Created 5 years, 6 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_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/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 21 matching lines...) Expand all
32 public: 32 public:
33 LayerPerfTest() 33 LayerPerfTest()
34 : host_impl_(&proxy_, &shared_bitmap_manager_, &task_graph_runner_), 34 : host_impl_(&proxy_, &shared_bitmap_manager_, &task_graph_runner_),
35 fake_client_(FakeLayerTreeHostClient::DIRECT_3D), 35 fake_client_(FakeLayerTreeHostClient::DIRECT_3D),
36 timer_(kWarmupRuns, 36 timer_(kWarmupRuns,
37 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), 37 base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
38 kTimeCheckInterval) {} 38 kTimeCheckInterval) {}
39 39
40 protected: 40 protected:
41 void SetUp() override { 41 void SetUp() override {
42 layer_tree_host_ = FakeLayerTreeHost::Create(&fake_client_); 42 layer_tree_host_ =
43 FakeLayerTreeHost::Create(&fake_client_, &task_graph_runner_);
43 layer_tree_host_->InitializeSingleThreaded( 44 layer_tree_host_->InitializeSingleThreaded(
44 &fake_client_, base::ThreadTaskRunnerHandle::Get(), nullptr); 45 &fake_client_, base::ThreadTaskRunnerHandle::Get(), nullptr);
45 } 46 }
46 47
47 void TearDown() override { 48 void TearDown() override {
48 layer_tree_host_->SetRootLayer(nullptr); 49 layer_tree_host_->SetRootLayer(nullptr);
49 layer_tree_host_ = nullptr; 50 layer_tree_host_ = nullptr;
50 } 51 }
51 52
52 FakeImplProxy proxy_; 53 FakeImplProxy proxy_;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 "", 115 "",
115 "props_didnt_change", 116 "props_didnt_change",
116 timer_.LapsPerSecond(), 117 timer_.LapsPerSecond(),
117 "runs/s", 118 "runs/s",
118 true); 119 true);
119 } 120 }
120 121
121 122
122 } // namespace 123 } // namespace
123 } // namespace cc 124 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_iterator_unittest.cc ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698