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

Unified Diff: cc/debug/micro_benchmark.h

Issue 67563002: cc: Plumbing for impl thread micro benchmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: create benchmarkimpl only once Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « cc/cc.gyp ('k') | cc/debug/micro_benchmark.cc » ('j') | cc/debug/micro_benchmark.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698