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

Unified Diff: ui/aura/window_tree_host.cc

Issue 2556803002: Making WTH::InitCompositor() protected instead of public. (Closed)
Patch Set: Calling InitHost() instead of InitCompositor() in a couple of places. Created 4 years 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
« ash/mus/window_manager.cc ('K') | « ui/aura/window_tree_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host.cc
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
index 87fac84f1cfdfdd5241b829cdd23697b119055f6..05747c40606622fec80dae34098559b5bce54bca 100644
--- a/ui/aura/window_tree_host.cc
+++ b/ui/aura/window_tree_host.cc
@@ -66,14 +66,6 @@ void WindowTreeHost::InitHost() {
window()->Show();
}
-void WindowTreeHost::InitCompositor() {
- compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()),
- GetBoundsInPixels().size());
- compositor_->SetRootLayer(window()->layer());
- compositor_->SetDisplayColorSpace(
- GetICCProfileForCurrentDisplay().GetColorSpace());
-}
-
void WindowTreeHost::AddObserver(WindowTreeHostObserver* observer) {
observers_.AddObserver(observer);
}
@@ -266,6 +258,14 @@ void WindowTreeHost::CreateCompositor() {
}
}
+void WindowTreeHost::InitCompositor() {
+ compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()),
+ GetBoundsInPixels().size());
+ compositor_->SetRootLayer(window()->layer());
+ compositor_->SetDisplayColorSpace(
+ GetICCProfileForCurrentDisplay().GetColorSpace());
+}
+
void WindowTreeHost::OnAcceleratedWidgetAvailable() {
compositor_->SetAcceleratedWidget(GetAcceleratedWidget());
prop_.reset(new ui::ViewProp(GetAcceleratedWidget(),
« ash/mus/window_manager.cc ('K') | « ui/aura/window_tree_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698