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

Unified Diff: cc/debug/unittest_only_benchmark.h

Issue 67563002: cc: Plumbing for impl thread micro benchmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: speculative fix 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
« no previous file with comments | « cc/debug/picture_record_benchmark.h ('k') | cc/debug/unittest_only_benchmark.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/unittest_only_benchmark.h
diff --git a/cc/debug/unittest_only_benchmark.h b/cc/debug/unittest_only_benchmark.h
index 5dd7291dc47be18f6ce3d92eae2d2ab8ca06ea61..83312859644cf7b55e5fc110c021b7b0d0b3d898 100644
--- a/cc/debug/unittest_only_benchmark.h
+++ b/cc/debug/unittest_only_benchmark.h
@@ -5,17 +5,28 @@
#ifndef CC_DEBUG_UNITTEST_ONLY_BENCHMARK_H_
#define CC_DEBUG_UNITTEST_ONLY_BENCHMARK_H_
+#include "base/memory/weak_ptr.h"
#include "cc/debug/micro_benchmark.h"
namespace cc {
-class UnittestOnlyBenchmark : public MicroBenchmark {
+class CC_EXPORT UnittestOnlyBenchmark : public MicroBenchmark {
public:
- explicit UnittestOnlyBenchmark(scoped_ptr<base::Value> value,
- const DoneCallback& callback);
+ UnittestOnlyBenchmark(scoped_ptr<base::Value> value,
+ const DoneCallback& callback);
virtual ~UnittestOnlyBenchmark();
virtual void DidUpdateLayers(LayerTreeHost* host) OVERRIDE;
+
+ protected:
+ virtual scoped_ptr<MicroBenchmarkImpl> CreateBenchmarkImpl(
+ scoped_refptr<base::MessageLoopProxy> origin_loop) OVERRIDE;
+
+ private:
+ void RecordImplResults(scoped_ptr<base::Value> results);
+
+ bool create_impl_benchmark_;
+ base::WeakPtrFactory<UnittestOnlyBenchmark> weak_ptr_factory_;
};
} // namespace cc
« no previous file with comments | « cc/debug/picture_record_benchmark.h ('k') | cc/debug/unittest_only_benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698