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

Unified Diff: services/ui/surfaces/gpu_compositor_frame_sink.cc

Issue 2549393003: Check client_ isn't null in GpuCompositorframeSink. (Closed)
Patch Set: Created 4 years 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: services/ui/surfaces/gpu_compositor_frame_sink.cc
diff --git a/services/ui/surfaces/gpu_compositor_frame_sink.cc b/services/ui/surfaces/gpu_compositor_frame_sink.cc
index 22f127935e215bcbffef2482c5e9118c118e89c7..e743bfc65993fc73b7f3a40196c5e1333615761f 100644
--- a/services/ui/surfaces/gpu_compositor_frame_sink.cc
+++ b/services/ui/surfaces/gpu_compositor_frame_sink.cc
@@ -48,7 +48,8 @@ void GpuCompositorFrameSink::SubmitCompositorFrame(
}
void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() {
- client_->DidReceiveCompositorFrameAck();
+ if (client_)
+ client_->DidReceiveCompositorFrameAck();
}
void GpuCompositorFrameSink::AddChildFrameSink(
« 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