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

Unified Diff: sky/shell/shell.cc

Issue 873923003: sky/shell should link with sky/engine (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
Index: sky/shell/shell.cc
diff --git a/sky/shell/shell.cc b/sky/shell/shell.cc
index 757a9e91c2e703b3979dfdbb8f9bae1a91168602..3a54bb2c09fb6c976252357d760af314fb8a2419 100644
--- a/sky/shell/shell.cc
+++ b/sky/shell/shell.cc
@@ -24,6 +24,13 @@ void Shell::Init() {
gpu_thread_->Start();
rasterizer_.reset(new Rasterizer());
+ ui_thread_.reset(new base::Thread("ui_thread"));
+ ui_thread_->Start();
+ engine_.reset(new Engine());
+
+ ui_thread_->message_loop()->PostTask(
+ FROM_HERE, base::Bind(&Engine::Init, engine_->GetWeakPtr()));
+
view_.reset(new SkyView(this));
view_->Init();
}

Powered by Google App Engine
This is Rietveld 408576698