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 3963a3adb544e201d69bf2f8fdf0c6c503855453..d9170f4d9c871c0b6302a0c083a2fdb2b868131c 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_); |