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: ash/host/transformer_helper.cc

Issue 1641003002: [exp] ash: Ash in Mus. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 4 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 | « ash/host/transformer_helper.h ('k') | ash/mus/wm/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/transformer_helper.cc
diff --git a/ash/host/transformer_helper.cc b/ash/host/transformer_helper.cc
index aba946053814031271959e57c01624c511824801..843a7a9ef612d06419a0ce16a094e5fc3ab9e3ff 100644
--- a/ash/host/transformer_helper.cc
+++ b/ash/host/transformer_helper.cc
@@ -65,6 +65,8 @@ TransformerHelper::TransformerHelper(AshWindowTreeHost* ash_host)
TransformerHelper::~TransformerHelper() {}
void TransformerHelper::Init() {
+ // AshWindowTreeHost::Create() should init this, not the AshWindowTreeHost*
+ // ctors.
SetTransform(gfx::Transform());
}
@@ -81,6 +83,7 @@ void TransformerHelper::SetTransform(const gfx::Transform& transform) {
void TransformerHelper::SetRootWindowTransformer(
scoped_ptr<RootWindowTransformer> transformer) {
transformer_ = std::move(transformer);
+ return; // Seee note above
aura::WindowTreeHost* host = ash_host_->AsWindowTreeHost();
aura::Window* window = host->window();
window->SetTransform(transformer_->GetTransform());
« no previous file with comments | « ash/host/transformer_helper.h ('k') | ash/mus/wm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698