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

Unified Diff: cc/blimp/layer_tree_host_remote.cc

Issue 2401703002: cc/blimp: Set up the framework for LayerTreeTests in remote mode. (Closed)
Patch Set: Created 4 years, 2 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/blimp/layer_tree_host_remote.cc
diff --git a/cc/blimp/layer_tree_host_remote.cc b/cc/blimp/layer_tree_host_remote.cc
index 66b7cbae8587b6a2a6920e5d3b1e41c8bb9cd396..9cc42a5efbd8477cbbfd9c72c24428696e278d24 100644
--- a/cc/blimp/layer_tree_host_remote.cc
+++ b/cc/blimp/layer_tree_host_remote.cc
@@ -424,6 +424,11 @@ void LayerTreeHostRemote::DispatchDrawAndSwapCallbacks() {
client_->DidCompleteSwapBuffers();
}
+void LayerTreeHostRemote::SetTaskRunnerProviderForTesting(
+ std::unique_ptr<TaskRunnerProvider> task_runner_provider) {
+ task_runner_provider_ = std::move(task_runner_provider);
+}
+
void LayerTreeHostRemote::SerializeCurrentState(
proto::LayerTreeHost* layer_tree_host_proto) {
// We need to serialize only the inputs received from the embedder.

Powered by Google App Engine
This is Rietveld 408576698