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

Side by Side Diff: cc/trees/layer_tree_host_common_perftest.cc

Issue 1801853002: Transfer LayerImpl ownership to LayerTreeImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more asan. 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/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_host_common_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/trees/layer_tree_host_common.h" 5 #include "cc/trees/layer_tree_host_common.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <deque> 9 #include <deque>
10 #include <sstream> 10 #include <sstream>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 EndTest(); 178 EndTest();
179 } 179 }
180 180
181 void BuildLayerImplList(LayerImpl* layer, LayerImplList* list) { 181 void BuildLayerImplList(LayerImpl* layer, LayerImplList* list) {
182 if (layer->Is3dSorted() && !layer->bounds().IsEmpty()) { 182 if (layer->Is3dSorted() && !layer->bounds().IsEmpty()) {
183 list->push_back(layer); 183 list->push_back(layer);
184 } 184 }
185 185
186 for (size_t i = 0; i < layer->children().size(); i++) { 186 for (size_t i = 0; i < layer->children().size(); i++) {
187 BuildLayerImplList(layer->children()[i].get(), list); 187 BuildLayerImplList(layer->children()[i], list);
188 } 188 }
189 } 189 }
190 190
191 private: 191 private:
192 LayerImplList base_list_; 192 LayerImplList base_list_;
193 int num_duplicates_; 193 int num_duplicates_;
194 }; 194 };
195 195
196 TEST_F(CalcDrawPropsTest, TenTen) { 196 TEST_F(CalcDrawPropsTest, TenTen) {
197 SetTestName("10_10"); 197 SetTestName("10_10");
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 TEST_F(BspTreePerfTest, BspTreeCubes_4) { 253 TEST_F(BspTreePerfTest, BspTreeCubes_4) {
254 SetTestName("bsp_tree_cubes_4"); 254 SetTestName("bsp_tree_cubes_4");
255 SetNumberOfDuplicates(4); 255 SetNumberOfDuplicates(4);
256 ReadTestFile("layer_sort_cubes"); 256 ReadTestFile("layer_sort_cubes");
257 RunSortLayers(); 257 RunSortLayers();
258 } 258 }
259 259
260 } // namespace 260 } // namespace
261 } // namespace cc 261 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698