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_H_ | 5 #ifndef CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_ |
6 #define CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_ | 6 #define CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "cc/debug/micro_benchmark_controller.h" | 15 #include "cc/debug/micro_benchmark_controller.h" |
16 #include "cc/resources/picture.h" | 16 #include "cc/playback/picture.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class DictionaryValue; | 19 class DictionaryValue; |
20 } | 20 } |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 | 23 |
24 class LayerTreeHost; | 24 class LayerTreeHost; |
25 class Layer; | 25 class Layer; |
26 class RasterizeAndRecordBenchmark : public MicroBenchmark { | 26 class RasterizeAndRecordBenchmark : public MicroBenchmark { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 bool main_thread_benchmark_done_; | 63 bool main_thread_benchmark_done_; |
64 | 64 |
65 LayerTreeHost* host_; | 65 LayerTreeHost* host_; |
66 | 66 |
67 base::WeakPtrFactory<RasterizeAndRecordBenchmark> weak_ptr_factory_; | 67 base::WeakPtrFactory<RasterizeAndRecordBenchmark> weak_ptr_factory_; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace cc | 70 } // namespace cc |
71 | 71 |
72 #endif // CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_ | 72 #endif // CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_H_ |
OLD | NEW |