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

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

Issue 319183003: Add missed NULL check in r274802 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@disable_partial_swap
Patch Set: Created 6 years, 6 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: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 3bcf1623749297d0d437674186f76c88c4dd61dc..9e5ac4434f54b6fcd0df1499d822295127c59dc2 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -2335,6 +2335,9 @@ void RenderWidgetHostViewMac::BrowserCompositorDidDrawFrame() {
// CompositingIOSurfaceLayerClient, public:
void RenderWidgetHostViewMac::AcceleratedLayerDidDrawFrame(bool succeeded) {
+ if (!render_widget_host_)
+ return;
+
SendPendingLatencyInfoToHost();
SendPendingSwapAck();
if (!succeeded)
« 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