Index: ui/android/delegated_frame_host_android.cc |
diff --git a/ui/android/delegated_frame_host_android.cc b/ui/android/delegated_frame_host_android.cc |
index 2d9389e5063601dd8617d1bf18fd419c03ce2e30..3935dd5bd4fdd23dd0bdf34a6e59e1dcd40e5070 100644 |
--- a/ui/android/delegated_frame_host_android.cc |
+++ b/ui/android/delegated_frame_host_android.cc |
@@ -85,7 +85,10 @@ void DelegatedFrameHostAndroid::SubmitCompositorFrame( |
cc::SurfaceId(frame_sink_id_, local_surface_id), 1.f, frame_size); |
has_transparent_background_ = root_pass->has_transparent_background; |
- support_->SubmitCompositorFrame(local_surface_id, std::move(frame)); |
+ bool result = |
+ support_->SubmitCompositorFrame(local_surface_id, std::move(frame)); |
+ DCHECK(result); |
+ |
content_layer_ = CreateSurfaceLayer(surface_manager_, surface_info_, |
!has_transparent_background_); |
view_->GetLayer()->AddChild(content_layer_); |