| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |