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/debug/rasterize_and_record_benchmark_impl.h" | 5 #include "cc/debug/rasterize_and_record_benchmark_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "cc/debug/lap_timer.h" | 12 #include "cc/debug/lap_timer.h" |
13 #include "cc/layers/layer_impl.h" | 13 #include "cc/layers/layer_impl.h" |
14 #include "cc/layers/picture_layer_impl.h" | 14 #include "cc/layers/picture_layer_impl.h" |
15 #include "cc/resources/raster_worker_pool.h" | 15 #include "cc/resources/raster_worker_pool.h" |
16 #include "cc/trees/layer_tree_host_common.h" | 16 #include "cc/trees/layer_tree_host_common.h" |
17 #include "cc/trees/layer_tree_host_impl.h" | 17 #include "cc/trees/layer_tree_host_impl.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
19 | 19 |
20 namespace cc { | 20 namespace cc { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const int kDefaultRasterizeRepeatCount = 100; | 24 const int kDefaultRasterizeRepeatCount = 100; |
25 | 25 |
26 class BenchmarkRasterTask : public Task { | 26 class BenchmarkRasterTask : public Task { |
27 public: | 27 public: |
28 BenchmarkRasterTask(PicturePileImpl* picture_pile, | 28 BenchmarkRasterTask(PicturePileImpl* picture_pile, |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 pixels_rasterized_with_non_solid_color(0), | 268 pixels_rasterized_with_non_solid_color(0), |
269 pixels_rasterized_as_opaque(0), | 269 pixels_rasterized_as_opaque(0), |
270 total_layers(0), | 270 total_layers(0), |
271 total_picture_layers(0), | 271 total_picture_layers(0), |
272 total_picture_layers_with_no_content(0), | 272 total_picture_layers_with_no_content(0), |
273 total_picture_layers_off_screen(0) {} | 273 total_picture_layers_off_screen(0) {} |
274 | 274 |
275 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {} | 275 RasterizeAndRecordBenchmarkImpl::RasterizeResults::~RasterizeResults() {} |
276 | 276 |
277 } // namespace cc | 277 } // namespace cc |
OLD | NEW |