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

Side by Side Diff: cc/debug/invalidation_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/frame_timing_tracker.h ('k') | cc/debug/invalidation_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 2014 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_INVALIDATION_BENCHMARK_H_
6 #define CC_DEBUG_INVALIDATION_BENCHMARK_H_
7
8 #include <string>
9
10 #include "cc/debug/micro_benchmark_controller.h"
11
12 namespace cc {
13
14 class LayerTreeHost;
15 class Layer;
16 // NOTE: this benchmark will not measure or return any results, it will simply
17 // invalidate a certain area of each layer every frame. It is intended to be
18 // used in combination with a telemetry benchmark that does the actual
19 // measurement.
20 class CC_EXPORT InvalidationBenchmark : public MicroBenchmark {
21 public:
22 explicit InvalidationBenchmark(scoped_ptr<base::Value> value,
23 const MicroBenchmark::DoneCallback& callback);
24 ~InvalidationBenchmark() override;
25
26 // Implements MicroBenchmark interface.
27 void DidUpdateLayers(LayerTreeHost* host) override;
28 void RunOnLayer(PictureLayer* layer) override;
29 bool ProcessMessage(scoped_ptr<base::Value> value) override;
30
31 private:
32 enum Mode { FIXED_SIZE, LAYER, VIEWPORT, RANDOM };
33
34 float LCGRandom();
35
36 Mode mode_;
37 int width_;
38 int height_;
39 uint32 seed_;
40 };
41
42 } // namespace cc
43
44 #endif // CC_DEBUG_INVALIDATION_BENCHMARK_H_
OLDNEW
« no previous file with comments | « cc/debug/frame_timing_tracker.h ('k') | cc/debug/invalidation_benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698