Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: cc/debug/micro_benchmark.cc

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on another LTH refactor CL. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/debug/micro_benchmark.h ('k') | cc/debug/micro_benchmark_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(LayerTreeHost* host) {} 31 void MicroBenchmark::DidUpdateLayers(LayerTree* layer_tree) {}
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
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
OLDNEW
« no previous file with comments | « cc/debug/micro_benchmark.h ('k') | cc/debug/micro_benchmark_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698