Index: cc/debug/micro_benchmark.h |
diff --git a/cc/debug/micro_benchmark.h b/cc/debug/micro_benchmark.h |
index 92c9b7501573973fcc4c2fa4d02e72676b12e80a..78a9ffcc9b487efdd89ad8873df76768ec34dfdd 100644 |
--- a/cc/debug/micro_benchmark.h |
+++ b/cc/debug/micro_benchmark.h |
@@ -10,6 +10,7 @@ |
namespace base { |
class Value; |
+class MessageLoopProxy; |
} // namespace base |
namespace cc { |
@@ -17,6 +18,7 @@ namespace cc { |
class LayerTreeHost; |
class Layer; |
class PictureLayer; |
+class MicroBenchmarkImpl; |
class MicroBenchmark { |
public: |
typedef base::Callback<void(scoped_ptr<base::Value>)> DoneCallback; |
@@ -30,12 +32,20 @@ class MicroBenchmark { |
virtual void RunOnLayer(Layer* layer); |
virtual void RunOnLayer(PictureLayer* layer); |
+ bool ProcessedForBenchmarkImpl() const; |
+ scoped_ptr<MicroBenchmarkImpl> GetBenchmarkImpl( |
+ scoped_refptr<base::MessageLoopProxy> origin_loop); |
+ |
protected: |
void NotifyDone(scoped_ptr<base::Value> result); |
+ virtual scoped_ptr<MicroBenchmarkImpl> CreateBenchmarkImpl( |
+ scoped_refptr<base::MessageLoopProxy> origin_loop); |
+ |
private: |
DoneCallback callback_; |
bool is_done_; |
+ bool processed_for_benchmark_impl_; |
}; |
} // namespace cc |