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

Unified Diff: cc/debug/micro_benchmark.cc

Issue 300963004: cc: Add message passing mechanism to micro benchmarking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 side-by-side diff with in-line comments
Download patch
Index: cc/debug/micro_benchmark.cc
diff --git a/cc/debug/micro_benchmark.cc b/cc/debug/micro_benchmark.cc
index 464d0cb625dd0ba40ff0774948e98f826613ae5e..bb3f18ad24f2e3d7756ef508ff171ab1c69c5832 100644
--- a/cc/debug/micro_benchmark.cc
+++ b/cc/debug/micro_benchmark.cc
@@ -13,10 +13,12 @@
namespace cc {
-MicroBenchmark::MicroBenchmark(const DoneCallback& callback)
+MicroBenchmark::MicroBenchmark(const DoneCallback& callback, int id)
: callback_(callback),
is_done_(false),
- processed_for_benchmark_impl_(false) {}
+ processed_for_benchmark_impl_(false),
+ id_(id) {
+}
MicroBenchmark::~MicroBenchmark() {}
@@ -35,6 +37,10 @@ void MicroBenchmark::RunOnLayer(Layer* layer) {}
void MicroBenchmark::RunOnLayer(PictureLayer* layer) {}
+bool MicroBenchmark::SendMessage(scoped_ptr<base::Value> value) {
+ return false;
+}
+
bool MicroBenchmark::ProcessedForBenchmarkImpl() const {
return processed_for_benchmark_impl_;
}

Powered by Google App Engine
This is Rietveld 408576698