Chromium Code Reviews| Index: cc/debug/micro_benchmark.h |
| diff --git a/cc/debug/micro_benchmark.h b/cc/debug/micro_benchmark.h |
| index f179fb9544d200ef30373fc4be88b1836c9469ea..c773933c861ff0c6c5de671c30b289fa59021999 100644 |
| --- a/cc/debug/micro_benchmark.h |
| +++ b/cc/debug/micro_benchmark.h |
| @@ -24,15 +24,18 @@ class CC_EXPORT MicroBenchmark { |
| public: |
| typedef base::Callback<void(scoped_ptr<base::Value>)> DoneCallback; |
| - explicit MicroBenchmark(const DoneCallback& callback); |
| + explicit MicroBenchmark(const DoneCallback& callback, int id); |
|
vmpstr
2014/05/28 21:16:25
Since this id isn't used by any particular benchma
ernstm
2014/05/28 21:51:55
Done. The id is now set in ScheduleRun, after the
|
| virtual ~MicroBenchmark(); |
| bool IsDone() const; |
| virtual void DidUpdateLayers(LayerTreeHost* host); |
| + int id() const { return id_; } |
| virtual void RunOnLayer(Layer* layer); |
| virtual void RunOnLayer(PictureLayer* layer); |
| + virtual bool SendMessage(scoped_ptr<base::Value> value); |
| + |
| bool ProcessedForBenchmarkImpl() const; |
| scoped_ptr<MicroBenchmarkImpl> GetBenchmarkImpl( |
| scoped_refptr<base::MessageLoopProxy> origin_loop); |
| @@ -47,6 +50,7 @@ class CC_EXPORT MicroBenchmark { |
| DoneCallback callback_; |
| bool is_done_; |
| bool processed_for_benchmark_impl_; |
| + int id_; |
| }; |
| } // namespace cc |