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

Unified Diff: chrome/browser/renderer_host/render_widget_host.cc

Issue 5372009: Null-check of OnMsgDidActivateAcceleratedCompositing to avoid crash during ta... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host.cc (revision 67706)
+++ chrome/browser/renderer_host/render_widget_host.cc (working copy)
@@ -987,9 +987,11 @@
if (old_state != is_accelerated_compositing_active_ && view_)
view_->GpuRenderingStateDidChange();
#elif defined(OS_WIN)
- view_->ShowCompositorHostWindow(is_accelerated_compositing_active_);
+ if (view_)
+ view_->ShowCompositorHostWindow(is_accelerated_compositing_active_);
#elif defined(TOOLKIT_USES_GTK)
- view_->AcceleratedCompositingActivated(activated);
+ if (view_)
+ view_->AcceleratedCompositingActivated(activated);
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698