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

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

Issue 298723013: cc: Add invalidation micro benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 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 class CC_EXPORT InvalidationBenchmark : public MicroBenchmark {
17 public:
18 explicit InvalidationBenchmark(scoped_ptr<base::Value> value,
19 const MicroBenchmark::DoneCallback& callback);
20 virtual ~InvalidationBenchmark();
21
22 // Implements MicroBenchmark interface.
23 virtual void DidUpdateLayers(LayerTreeHost* host) OVERRIDE;
24 virtual void RunOnLayer(PictureLayer* layer) OVERRIDE;
25
26 private:
27 void Run(Layer* layer);
28
29 std::string mode_;
30 };
31
32 } // namespace cc
33
34 #endif // CC_DEBUG_INVALIDATION_BENCHMARK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698