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

Unified Diff: cc/trees/thread_proxy.cc

Issue 17362002: cc: Remove FakeThread, use SingleThreadTaskRunner in scheduling classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-fakethread: Created 7 years, 6 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/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 6a96c183dbe8e63b207ac7672c8309d70fb831f6..d65ba4fa56868c783fc52d3397c357c5e37ad7bf 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -801,7 +801,7 @@ void ThreadProxy::StartCommitOnImplThread(
current_resource_update_controller_on_impl_thread_ =
ResourceUpdateController::Create(
this,
- Proxy::ImplThread(),
+ Proxy::ImplThread()->TaskRunner(),
queue.Pass(),
layer_tree_host_impl_->resource_provider());
current_resource_update_controller_on_impl_thread_->PerformMoreUpdates(
@@ -1168,10 +1168,11 @@ void ThreadProxy::InitializeImplOnImplThread(CompletionEvent* completion) {
} else {
frame_rate_controller.reset(
new FrameRateController(DelayBasedTimeSource::Create(
- display_refresh_interval, Proxy::ImplThread())));
+ display_refresh_interval, Proxy::ImplThread()->TaskRunner())));
}
} else {
- frame_rate_controller.reset(new FrameRateController(Proxy::ImplThread()));
+ frame_rate_controller.reset(
+ new FrameRateController(Proxy::ImplThread()->TaskRunner()));
}
const LayerTreeSettings& settings = layer_tree_host_->settings();
SchedulerSettings scheduler_settings;
« cc/resources/resource_update_controller_unittest.cc ('K') | « cc/trees/single_thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698