| 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.h" | 5 #include "cc/debug/micro_benchmark.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 processed_for_benchmark_impl_(false), | 21 processed_for_benchmark_impl_(false), |
| 22 id_(0) { | 22 id_(0) { |
| 23 } | 23 } |
| 24 | 24 |
| 25 MicroBenchmark::~MicroBenchmark() {} | 25 MicroBenchmark::~MicroBenchmark() {} |
| 26 | 26 |
| 27 bool MicroBenchmark::IsDone() const { | 27 bool MicroBenchmark::IsDone() const { |
| 28 return is_done_; | 28 return is_done_; |
| 29 } | 29 } |
| 30 | 30 |
| 31 void MicroBenchmark::DidUpdateLayers(LayerTree* layer_tree) {} | 31 void MicroBenchmark::DidUpdateLayers(LayerTreeHost* layer_tree_host) {} |
| 32 | 32 |
| 33 void MicroBenchmark::NotifyDone(std::unique_ptr<base::Value> result) { | 33 void MicroBenchmark::NotifyDone(std::unique_ptr<base::Value> result) { |
| 34 callback_.Run(std::move(result)); | 34 callback_.Run(std::move(result)); |
| 35 is_done_ = true; | 35 is_done_ = true; |
| 36 } | 36 } |
| 37 | 37 |
| 38 void MicroBenchmark::RunOnLayer(Layer* layer) {} | 38 void MicroBenchmark::RunOnLayer(Layer* layer) {} |
| 39 | 39 |
| 40 void MicroBenchmark::RunOnLayer(PictureLayer* layer) {} | 40 void MicroBenchmark::RunOnLayer(PictureLayer* layer) {} |
| 41 | 41 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 53 processed_for_benchmark_impl_ = true; | 53 processed_for_benchmark_impl_ = true; |
| 54 return CreateBenchmarkImpl(origin_task_runner); | 54 return CreateBenchmarkImpl(origin_task_runner); |
| 55 } | 55 } |
| 56 | 56 |
| 57 std::unique_ptr<MicroBenchmarkImpl> MicroBenchmark::CreateBenchmarkImpl( | 57 std::unique_ptr<MicroBenchmarkImpl> MicroBenchmark::CreateBenchmarkImpl( |
| 58 scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner) { | 58 scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner) { |
| 59 return base::WrapUnique<MicroBenchmarkImpl>(nullptr); | 59 return base::WrapUnique<MicroBenchmarkImpl>(nullptr); |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace cc | 62 } // namespace cc |
| OLD | NEW |