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

Unified Diff: cc/trees/layer_tree_host.h

Issue 300963004: cc: Add message passing mechanism to micro benchmarking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments. 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/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 793cd69c253e782ea1cc8d44553ff1755dda0591..9d9c5d106207e93a1165c56468c4cb7fb3603142 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -275,9 +275,12 @@ class CC_EXPORT LayerTreeHost {
bool UsingSharedMemoryResources();
int id() const { return id_; }
- bool ScheduleMicroBenchmark(const std::string& benchmark_name,
- scoped_ptr<base::Value> value,
- const MicroBenchmark::DoneCallback& callback);
+ // Returns the id of the benchmark on success, 0 otherwise.
+ int ScheduleMicroBenchmark(const std::string& benchmark_name,
+ scoped_ptr<base::Value> value,
+ const MicroBenchmark::DoneCallback& callback);
+ // Returns true if the message was successfully delivered and handled.
+ bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value);
// When a SwapPromiseMonitor is created on the main thread, it calls
// InsertSwapPromiseMonitor() to register itself with LayerTreeHost.

Powered by Google App Engine
This is Rietveld 408576698