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/micro_benchmark_controller.h" | 5 #include "cc/debug/micro_benchmark_controller.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "cc/debug/invalidation_benchmark.h" | 14 #include "cc/debug/invalidation_benchmark.h" |
15 #include "cc/debug/rasterize_and_record_benchmark.h" | 15 #include "cc/debug/rasterize_and_record_benchmark.h" |
16 #include "cc/debug/unittest_only_benchmark.h" | 16 #include "cc/debug/unittest_only_benchmark.h" |
17 #include "cc/trees/layer_tree_host.h" | 17 #include "cc/trees/layer_tree_host.h" |
18 #include "cc/trees/layer_tree_host_impl.h" | 18 #include "cc/trees/layer_tree_host_impl.h" |
19 | 19 |
20 namespace cc { | 20 namespace cc { |
21 | 21 |
22 int MicroBenchmarkController::next_id_ = 1; | 22 int MicroBenchmarkController::next_id_ = 1; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 void MicroBenchmarkController::CleanUpFinishedBenchmarks() { | 114 void MicroBenchmarkController::CleanUpFinishedBenchmarks() { |
115 benchmarks_.erase( | 115 benchmarks_.erase( |
116 std::remove_if(benchmarks_.begin(), benchmarks_.end(), | 116 std::remove_if(benchmarks_.begin(), benchmarks_.end(), |
117 [](const std::unique_ptr<MicroBenchmark>& benchmark) { | 117 [](const std::unique_ptr<MicroBenchmark>& benchmark) { |
118 return benchmark->IsDone(); | 118 return benchmark->IsDone(); |
119 }), | 119 }), |
120 benchmarks_.end()); | 120 benchmarks_.end()); |
121 } | 121 } |
122 | 122 |
123 } // namespace cc | 123 } // namespace cc |
OLD | NEW |