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

Side by Side Diff: cc/output/bsp_tree_perftest.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <deque> 7 #include <deque>
8 #include <memory> 8 #include <memory>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 void BuildLayerImplList(LayerImpl* layer, LayerImplList* list) { 129 void BuildLayerImplList(LayerImpl* layer, LayerImplList* list) {
130 for (auto* layer_impl : *layer->layer_tree_impl()) { 130 for (auto* layer_impl : *layer->layer_tree_impl()) {
131 if (layer_impl->Is3dSorted() && !layer_impl->bounds().IsEmpty()) { 131 if (layer_impl->Is3dSorted() && !layer_impl->bounds().IsEmpty()) {
132 list->push_back(layer_impl); 132 list->push_back(layer_impl);
133 } 133 }
134 } 134 }
135 } 135 }
136 136
137 void AfterTest() override { 137 void AfterTest() override {
138 CHECK(!test_name_.empty()) << "Must SetTestName() before TearDown()."; 138 // Must SetTestName() before TearDown().
139 CHECK(!test_name_.empty());
139 perf_test::PrintResult("calc_draw_props_time", "", test_name_, 140 perf_test::PrintResult("calc_draw_props_time", "", test_name_,
140 1000 * timer_.MsPerLap(), "us", true); 141 1000 * timer_.MsPerLap(), "us", true);
141 } 142 }
142 143
143 private: 144 private:
144 FakeContentLayerClient content_layer_client_; 145 FakeContentLayerClient content_layer_client_;
145 LapTimer timer_; 146 LapTimer timer_;
146 std::string test_name_; 147 std::string test_name_;
147 std::string json_; 148 std::string json_;
148 LayerImplList base_list_; 149 LayerImplList base_list_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 185
185 TEST_F(BspTreePerfTest, BspTreeCubes_4) { 186 TEST_F(BspTreePerfTest, BspTreeCubes_4) {
186 SetTestName("bsp_tree_cubes_4"); 187 SetTestName("bsp_tree_cubes_4");
187 SetNumberOfDuplicates(4); 188 SetNumberOfDuplicates(4);
188 ReadTestFile("layer_sort_cubes"); 189 ReadTestFile("layer_sort_cubes");
189 RunTest(CompositorMode::SINGLE_THREADED); 190 RunTest(CompositorMode::SINGLE_THREADED);
190 } 191 }
191 192
192 } // namespace 193 } // namespace
193 } // namespace cc 194 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698