summaryrefslogtreecommitdiffstats
path: root/ui/aura/window_tree_host_win.cc
diff options
context:
space:
mode:
authorsievers <sievers@chromium.org>2015-08-25 12:27:13 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-25 19:27:58 +0000
commitb2a31d337b0986b018884f1617418f6e4c88e1ba (patch)
tree46f6c66e45a6d73fbcfea0898af9a1ed7eb2dfb9 /ui/aura/window_tree_host_win.cc
parent636937be9f967cd3218868f53d976bfa1d3612dc (diff)
downloadchromium_src-b2a31d337b0986b018884f1617418f6e4c88e1ba.zip
chromium_src-b2a31d337b0986b018884f1617418f6e4c88e1ba.tar.gz
chromium_src-b2a31d337b0986b018884f1617418f6e4c88e1ba.tar.bz2
aura: Allow deferred widget creation
This further passes through OnAcceleratedWidgetAvailable(), which will then defer LayerTreeHost::SetLayerTreeHostClientReady(). That again means there will be no attempts to create an OutputSurface until OnAcceleratedWidgetAvailable() happens. BUG=513540,255128 Review URL: https://codereview.chromium.org/1295253002 Cr-Commit-Position: refs/heads/master@{#345407}
Diffstat (limited to 'ui/aura/window_tree_host_win.cc')
-rw-r--r--ui/aura/window_tree_host_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/aura/window_tree_host_win.cc b/ui/aura/window_tree_host_win.cc
index 810b5e1..1fde2ee 100644
--- a/ui/aura/window_tree_host_win.cc
+++ b/ui/aura/window_tree_host_win.cc
@@ -149,7 +149,8 @@ void WindowTreeHostWin::OnAcceleratedWidgetAvailable(
gfx::AcceleratedWidget widget,
float device_pixel_ratio) {
widget_ = widget;
- CreateCompositor(widget);
+ CreateCompositor();
+ WindowTreeHost::OnAcceleratedWidgetAvailable();
}
void WindowTreeHostWin::OnActivationChanged(bool active) {