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

Unified Diff: ui/aura/window_tree_host.cc

Issue 132473007: aura: Destroy the compositor before destroying the backing window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: destroy-window: Created 6 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 | « no previous file | ui/gfx/win/window_impl.cc » ('j') | 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 4deb5fcd2fd3b990ce6a26eaf65a0e78decb02cb..d4770130d8579de5054682e22435a9cff3c6458d 100644
--- a/ui/aura/window_tree_host.cc
+++ b/ui/aura/window_tree_host.cc
@@ -167,7 +167,10 @@ WindowTreeHost::WindowTreeHost()
: delegate_(NULL) {
}
-void WindowTreeHost::DestroyCompositor() { compositor_.reset(); }
+void WindowTreeHost::DestroyCompositor() {
+ DCHECK(GetAcceleratedWidget());
+ compositor_.reset();
+}
void WindowTreeHost::CreateCompositor(
gfx::AcceleratedWidget accelerated_widget) {
« no previous file with comments | « no previous file | ui/gfx/win/window_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698