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

Side by Side Diff: cc/debug/rasterize_and_record_benchmark_impl.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
(Empty)
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.
4
5 #ifndef CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_IMPL_H_
6 #define CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_IMPL_H_
7
8 #include <map>
9 #include <utility>
10 #include <vector>
11
12 #include "base/time/time.h"
13 #include "cc/debug/micro_benchmark_impl.h"
14 #include "cc/resources/task_graph_runner.h"
15
16 namespace cc {
17
18 class LayerTreeHostImpl;
19 class PictureLayerImpl;
20 class LayerImpl;
21 class RasterizeAndRecordBenchmarkImpl : public MicroBenchmarkImpl {
22 public:
23 explicit RasterizeAndRecordBenchmarkImpl(
24 scoped_refptr<base::MessageLoopProxy> origin_loop,
25 base::Value* value,
26 const MicroBenchmarkImpl::DoneCallback& callback);
27 ~RasterizeAndRecordBenchmarkImpl() override;
28
29 // Implements MicroBenchmark interface.
30 void DidCompleteCommit(LayerTreeHostImpl* host) override;
31 void RunOnLayer(PictureLayerImpl* layer) override;
32
33 private:
34 struct RasterizeResults {
35 RasterizeResults();
36 ~RasterizeResults();
37
38 int pixels_rasterized;
39 int pixels_rasterized_with_non_solid_color;
40 int pixels_rasterized_as_opaque;
41 base::TimeDelta total_best_time;
42 int total_memory_usage;
43 int total_layers;
44 int total_picture_layers;
45 int total_picture_layers_with_no_content;
46 int total_picture_layers_off_screen;
47 };
48
49 RasterizeResults rasterize_results_;
50 int rasterize_repeat_count_;
51 };
52
53 } // namespace cc
54
55 #endif // CC_DEBUG_RASTERIZE_AND_RECORD_BENCHMARK_IMPL_H_
OLDNEW
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark.cc ('k') | cc/debug/rasterize_and_record_benchmark_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698