Fix dcheck in message port code on Mandoline shutdown.
[chromium-blink-merge.git] / cc / debug / micro_benchmark_controller_impl.h
blob734bf63ce6bcecabeb436a59a14542159a4c973a
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
3 // found in the LICENSE file.
5 #ifndef CC_DEBUG_MICRO_BENCHMARK_CONTROLLER_IMPL_H_
6 #define CC_DEBUG_MICRO_BENCHMARK_CONTROLLER_IMPL_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "cc/base/scoped_ptr_vector.h"
12 #include "cc/debug/micro_benchmark_impl.h"
14 namespace cc {
16 class LayerTreeHostImpl;
17 class CC_EXPORT MicroBenchmarkControllerImpl {
18 public:
19 explicit MicroBenchmarkControllerImpl(LayerTreeHostImpl* host);
20 ~MicroBenchmarkControllerImpl();
22 void DidCompleteCommit();
24 void ScheduleRun(scoped_ptr<MicroBenchmarkImpl> benchmark);
26 private:
27 void CleanUpFinishedBenchmarks();
29 LayerTreeHostImpl* host_;
30 ScopedPtrVector<MicroBenchmarkImpl> benchmarks_;
32 DISALLOW_COPY_AND_ASSIGN(MicroBenchmarkControllerImpl);
35 } // namespace cc
37 #endif // CC_DEBUG_MICRO_BENCHMARK_CONTROLLER_IMPL_H_