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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_mac.mm

Issue 4141005: Mac: Don't crash in -[AcceleratedPluginView drawView] when the RWHVMac went away. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 2 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 | 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_view_mac.mm
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
index 9e5c6e7db94b3f17d470b068a0677dbb0ab5241c..68435a2bdc8d7b9ace56ccc99dec77d0a8568770 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
@@ -283,9 +283,11 @@ static CVReturn DrawOneAcceleratedPluginCallback(
// Called on a background thread. Synchronized via the CGL context lock.
CGLLockContext(cglContext_);
- // TODO(thakis): Pixel or view coordinates for size?
- renderWidgetHostView_->DrawAcceleratedSurfaceInstance(
- cglContext_, pluginHandle_, [self cachedSize]);
+ if (renderWidgetHostView_) {
+ // TODO(thakis): Pixel or view coordinates for size?
+ renderWidgetHostView_->DrawAcceleratedSurfaceInstance(
+ cglContext_, pluginHandle_, [self cachedSize]);
+ }
CGLFlushDrawable(cglContext_);
CGLUnlockContext(cglContext_);
« 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