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

Unified Diff: sky/shell/shell.cc

Issue 962383003: Make shake-to-reload actually work (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/shell/org/domokit/sky/shell/JavaServiceProvider.java ('k') | sky/shell/ui/engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/shell.cc
diff --git a/sky/shell/shell.cc b/sky/shell/shell.cc
index ae2f2e9372fc1e929f0194dcfc883bbf2af578f5..ed1105ea501dbaba866ae9e0ea10ff124299edb2 100644
--- a/sky/shell/shell.cc
+++ b/sky/shell/shell.cc
@@ -64,13 +64,13 @@ void Shell::InitUI(const base::Thread::Options& options) {
ui_thread_->StartWithOptions(options);
Engine::Config config;
+ config.java_task_runner = java_task_runner_;
config.gpu_task_runner = gpu_thread_->message_loop()->task_runner();
config.gpu_delegate = rasterizer_->GetWeakPtr();
engine_.reset(new Engine(config));
ui_thread_->message_loop()->PostTask(
- FROM_HERE, base::Bind(&Engine::Init, engine_->GetWeakPtr(),
- base::Passed(CreateJavaServiceProvider())));
+ FROM_HERE, base::Bind(&Engine::Init, engine_->GetWeakPtr()));
}
void Shell::InitView() {
« no previous file with comments | « sky/shell/org/domokit/sky/shell/JavaServiceProvider.java ('k') | sky/shell/ui/engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698