| 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> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 const gfx::Rect& visible_content_rect); | 44 const gfx::Rect& visible_content_rect); |
| 45 | 45 |
| 46 void RecordRasterResults(scoped_ptr<base::Value> results); | 46 void RecordRasterResults(scoped_ptr<base::Value> results); |
| 47 | 47 |
| 48 struct RecordResults { | 48 struct RecordResults { |
| 49 RecordResults(); | 49 RecordResults(); |
| 50 ~RecordResults(); | 50 ~RecordResults(); |
| 51 | 51 |
| 52 int pixels_recorded; | 52 int pixels_recorded; |
| 53 size_t bytes_used; | 53 size_t bytes_used; |
| 54 base::TimeDelta total_best_time[Picture::RECORDING_MODE_COUNT]; | 54 base::TimeDelta total_best_time[RecordingSource::RECORDING_MODE_COUNT]; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 RecordResults record_results_; | 57 RecordResults record_results_; |
| 58 int record_repeat_count_; | 58 int record_repeat_count_; |
| 59 scoped_ptr<base::Value> settings_; | 59 scoped_ptr<base::Value> settings_; |
| 60 scoped_ptr<base::DictionaryValue> results_; | 60 scoped_ptr<base::DictionaryValue> results_; |
| 61 | 61 |
| 62 // The following is used in DCHECKs. | 62 // The following is used in DCHECKs. |
| 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 |