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

Side by Side Diff: cc/debug/picture_record_benchmark.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
« no previous file with comments | « cc/debug/picture_debug_util.cc ('k') | cc/debug/picture_record_benchmark.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PICTURE_RECORD_BENCHMARK_H_
6 #define CC_DEBUG_PICTURE_RECORD_BENCHMARK_H_
7
8 #include <map>
9 #include <utility>
10 #include <vector>
11
12 #include "base/time/time.h"
13 #include "cc/debug/micro_benchmark_controller.h"
14
15 namespace cc {
16
17 class LayerTreeHost;
18 class Layer;
19 class CC_EXPORT PictureRecordBenchmark : public MicroBenchmark {
20 public:
21 explicit PictureRecordBenchmark(scoped_ptr<base::Value> value,
22 const MicroBenchmark::DoneCallback& callback);
23 ~PictureRecordBenchmark() override;
24
25 // Implements MicroBenchmark interface.
26 void DidUpdateLayers(LayerTreeHost* host) override;
27 void RunOnLayer(PictureLayer* layer) override;
28
29 private:
30 typedef std::pair<base::TimeDelta, unsigned> TotalTime;
31 std::map<std::pair<int, int>, TotalTime> times_;
32 std::vector<std::pair<int, int>> dimensions_;
33 };
34
35 } // namespace cc
36
37 #endif // CC_DEBUG_PICTURE_RECORD_BENCHMARK_H_
OLDNEW
« no previous file with comments | « cc/debug/picture_debug_util.cc ('k') | cc/debug/picture_record_benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698