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

Unified Diff: mash/simple_wm/simple_wm.cc

Issue 2644093002: aura: Some change to how the client-lib is set up. (Closed)
Patch Set: . Created 3 years, 11 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 | « mash/simple_wm/simple_wm.h ('k') | services/ui/demo/mus_demo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/simple_wm/simple_wm.cc
diff --git a/mash/simple_wm/simple_wm.cc b/mash/simple_wm/simple_wm.cc
index eb5bb4341a48b9d3315be490911b8b1b2e29c92f..eb893ed200ee9658734ada21bc90674b0bf339bb 100644
--- a/mash/simple_wm/simple_wm.cc
+++ b/mash/simple_wm/simple_wm.cc
@@ -353,8 +353,6 @@ SimpleWM::~SimpleWM() {
// WindowTreeClient destruction may callback to us.
window_tree_client_.reset();
- gpu_.reset();
-
display::Screen::SetScreenInstance(nullptr);
}
@@ -369,11 +367,6 @@ void SimpleWM::OnStart() {
aura_init_ = base::MakeUnique<views::AuraInit>(
context()->connector(), context()->identity(), "views_mus_resources.pak",
std::string(), nullptr, views::AuraInit::Mode::AURA_MUS_WINDOW_MANAGER);
- gpu_ = ui::Gpu::Create(context()->connector(), nullptr);
- compositor_context_factory_ =
- base::MakeUnique<aura::MusContextFactory>(gpu_.get());
- aura::Env::GetInstance()->set_context_factory(
- compositor_context_factory_.get());
window_tree_client_ = base::MakeUnique<aura::WindowTreeClient>(
context()->connector(), this, this);
aura::Env::GetInstance()->SetWindowTreeClient(window_tree_client_.get());
« no previous file with comments | « mash/simple_wm/simple_wm.h ('k') | services/ui/demo/mus_demo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698