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/unittest_only_benchmark_impl.h" | 5 #include "cc/debug/unittest_only_benchmark_impl.h" |
6 | 6 |
7 #include "base/message_loop/message_loop_proxy.h" | 7 #include "base/message_loop/message_loop_proxy.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
11 | 11 |
12 UnittestOnlyBenchmarkImpl::UnittestOnlyBenchmarkImpl( | 12 UnittestOnlyBenchmarkImpl::UnittestOnlyBenchmarkImpl( |
13 scoped_refptr<base::MessageLoopProxy> origin_loop, | 13 scoped_refptr<base::MessageLoopProxy> origin_loop, |
14 base::Value* settings, | 14 base::Value* settings, |
15 const DoneCallback& callback) | 15 const DoneCallback& callback) |
16 : MicroBenchmarkImpl(callback, origin_loop) {} | 16 : MicroBenchmarkImpl(callback, origin_loop) {} |
17 | 17 |
18 UnittestOnlyBenchmarkImpl::~UnittestOnlyBenchmarkImpl() {} | 18 UnittestOnlyBenchmarkImpl::~UnittestOnlyBenchmarkImpl() {} |
19 | 19 |
20 void UnittestOnlyBenchmarkImpl::DidCompleteCommit(LayerTreeHostImpl* host) { | 20 void UnittestOnlyBenchmarkImpl::DidCompleteCommit(LayerTreeHostImpl* host) { |
21 NotifyDone(scoped_ptr<base::Value>()); | 21 NotifyDone(nullptr); |
22 } | 22 } |
23 | 23 |
24 } // namespace cc | 24 } // namespace cc |
OLD | NEW |