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.h" | 5 #include "cc/debug/rasterize_and_record_benchmark.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <limits> | 10 #include <limits> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "cc/debug/lap_timer.h" | 16 #include "cc/debug/lap_timer.h" |
17 #include "cc/debug/rasterize_and_record_benchmark_impl.h" | 17 #include "cc/debug/rasterize_and_record_benchmark_impl.h" |
18 #include "cc/layers/content_layer_client.h" | 18 #include "cc/layers/content_layer_client.h" |
19 #include "cc/layers/layer.h" | 19 #include "cc/layers/layer.h" |
20 #include "cc/layers/picture_layer.h" | 20 #include "cc/layers/picture_layer.h" |
21 #include "cc/playback/display_item_list.h" | 21 #include "cc/layers/recording_source.h" |
22 #include "cc/playback/recording_source.h" | 22 #include "cc/paint/display_item_list.h" |
23 #include "cc/trees/layer_tree_host.h" | 23 #include "cc/trees/layer_tree_host.h" |
24 #include "cc/trees/layer_tree_host_common.h" | 24 #include "cc/trees/layer_tree_host_common.h" |
25 #include "skia/ext/analysis_canvas.h" | 25 #include "skia/ext/analysis_canvas.h" |
26 #include "ui/gfx/geometry/rect.h" | 26 #include "ui/gfx/geometry/rect.h" |
27 | 27 |
28 namespace cc { | 28 namespace cc { |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 const int kDefaultRecordRepeatCount = 100; | 32 const int kDefaultRecordRepeatCount = 100; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 } | 189 } |
190 } | 190 } |
191 | 191 |
192 RasterizeAndRecordBenchmark::RecordResults::RecordResults() | 192 RasterizeAndRecordBenchmark::RecordResults::RecordResults() |
193 : pixels_recorded(0), bytes_used(0) { | 193 : pixels_recorded(0), bytes_used(0) { |
194 } | 194 } |
195 | 195 |
196 RasterizeAndRecordBenchmark::RecordResults::~RecordResults() {} | 196 RasterizeAndRecordBenchmark::RecordResults::~RecordResults() {} |
197 | 197 |
198 } // namespace cc | 198 } // namespace cc |
OLD | NEW |