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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 287563006: Attempt at fixing crash where compositor is null (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
index 1ecd9962e7901ac5290c861b11afa46c719d50ae..402a94ee3f43df7506400094a72cb0a5e3a1bf65 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
@@ -864,7 +864,9 @@ bool DesktopWindowTreeHostWin::HandlePaintAccelerated(
}
void DesktopWindowTreeHostWin::HandlePaint(gfx::Canvas* canvas) {
- compositor()->ScheduleRedrawRect(gfx::Rect());
+ // It appears possible to get WM_PAINT after WM_DESTROY.
+ if (compositor())
+ compositor()->ScheduleRedrawRect(gfx::Rect());
}
bool DesktopWindowTreeHostWin::HandleTooltipNotify(int w_param,
« no previous file with comments | « no previous file | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698