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

Unified Diff: sky/viewer/platform/platform_impl.cc

Issue 684813003: Remove wtf/Functional.h (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/viewer/platform/platform_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/platform/platform_impl.cc
diff --git a/sky/viewer/platform/platform_impl.cc b/sky/viewer/platform/platform_impl.cc
index 637849a2e3e239bb73b07cf39aff836f4b7a5e22..d4b47d8844fe4894aeea21b8160d3f08691ba447 100644
--- a/sky/viewer/platform/platform_impl.cc
+++ b/sky/viewer/platform/platform_impl.cc
@@ -41,6 +41,7 @@ class ConvertableToTraceFormatWrapper
PlatformImpl::PlatformImpl(mojo::ApplicationImpl* app)
: main_loop_(base::MessageLoop::current()),
+ main_thread_task_runner_(base::MessageLoop::current()->task_runner()),
shared_timer_func_(NULL),
shared_timer_fire_time_(0.0),
shared_timer_fire_time_was_set_while_suspended_(false),
@@ -123,6 +124,11 @@ void PlatformImpl::callOnMainThread(
main_loop_->PostTask(FROM_HERE, base::Bind(func, context));
}
+base::SingleThreadTaskRunner* PlatformImpl::mainThreadTaskRunner() {
+ return main_thread_task_runner_.get();
+}
+
+
bool PlatformImpl::isThreadedCompositingEnabled() {
return true;
}
« no previous file with comments | « sky/viewer/platform/platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698