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 #ifndef CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_IMPL_H_ | 5 #ifndef CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_IMPL_H_ |
6 #define CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_IMPL_H_ | 6 #define CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "cc/debug/micro_benchmark_impl.h" | 16 #include "cc/debug/micro_benchmark_impl.h" |
17 #include "cc/raster/task_graph_runner.h" | 17 #include "cc/raster/task_graph_runner.h" |
18 | 18 |
19 namespace cc { | 19 namespace cc { |
20 | 20 |
21 class LayerTreeHostImpl; | 21 class LayerTreeHostImpl; |
22 class PictureLayerImpl; | 22 class PictureLayerImpl; |
23 class LayerImpl; | 23 |
24 class RasterizeAndRecordBenchmarkImpl : public MicroBenchmarkImpl { | 24 class RasterizeAndRecordBenchmarkImpl : public MicroBenchmarkImpl { |
25 public: | 25 public: |
26 explicit RasterizeAndRecordBenchmarkImpl( | 26 explicit RasterizeAndRecordBenchmarkImpl( |
27 scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner, | 27 scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner, |
28 base::Value* value, | 28 base::Value* value, |
29 const MicroBenchmarkImpl::DoneCallback& callback); | 29 const MicroBenchmarkImpl::DoneCallback& callback); |
30 ~RasterizeAndRecordBenchmarkImpl() override; | 30 ~RasterizeAndRecordBenchmarkImpl() override; |
31 | 31 |
32 // Implements MicroBenchmark interface. | 32 // Implements MicroBenchmark interface. |
33 void DidCompleteCommit(LayerTreeHostImpl* host) override; | 33 void DidCompleteCommit(LayerTreeHostImpl* host) override; |
(...skipping 15 matching lines...) Expand all Loading... |
49 int total_picture_layers_off_screen; | 49 int total_picture_layers_off_screen; |
50 }; | 50 }; |
51 | 51 |
52 RasterizeResults rasterize_results_; | 52 RasterizeResults rasterize_results_; |
53 int rasterize_repeat_count_; | 53 int rasterize_repeat_count_; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace cc | 56 } // namespace cc |
57 | 57 |
58 #endif // CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_IMPL_H_ | 58 #endif // CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_IMPL_H_ |
OLD | NEW |