summaryrefslogtreecommitdiffstats
path: root/chromium/cc/debug/unittest_only_benchmark.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/debug/unittest_only_benchmark.cc')
-rw-r--r--chromium/cc/debug/unittest_only_benchmark.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chromium/cc/debug/unittest_only_benchmark.cc b/chromium/cc/debug/unittest_only_benchmark.cc
index 9c6b17699e3..0f0694ad9df 100644
--- a/chromium/cc/debug/unittest_only_benchmark.cc
+++ b/chromium/cc/debug/unittest_only_benchmark.cc
@@ -36,6 +36,18 @@ void UnittestOnlyBenchmark::DidUpdateLayers(LayerTreeHost* host) {
NotifyDone(scoped_ptr<base::Value>());
}
+bool UnittestOnlyBenchmark::ProcessMessage(scoped_ptr<base::Value> value) {
+ base::DictionaryValue* message = NULL;
+ value->GetAsDictionary(&message);
+ bool can_handle;
+ if (message->HasKey("can_handle")) {
+ message->GetBoolean("can_handle", &can_handle);
+ if (can_handle)
+ return true;
+ }
+ return false;
+}
+
void UnittestOnlyBenchmark::RecordImplResults(scoped_ptr<base::Value> results) {
NotifyDone(results.Pass());
}