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 e33c8b443c49a75fd9021635d6c26b9b74186bb9..0de9596f2bcaf1f2ffcc551e891ee57c3897a676 100644 |
--- a/ui/android/delegated_frame_host_android.cc |
+++ b/ui/android/delegated_frame_host_android.cc |
@@ -131,6 +131,18 @@ void DelegatedFrameHostAndroid::DestroyDelegatedContent() { |
surface_info_ = cc::SurfaceInfo(); |
} |
+namespace { |
+void IgnoreDrawCallback() {} |
+void IgnoreWillDrawCallback(const cc::LocalSurfaceId&, const gfx::Rect&) {} |
+} |
+ |
+void DelegatedFrameHostAndroid::ForceFrame(cc::CompositorFrame frame) { |
+ cc::Surface* surface = surface_manager_->GetSurfaceForId(SurfaceId()); |
+ if (surface) |
+ surface->QueueFrame(std::move(frame), base::Bind(&IgnoreDrawCallback), |
+ base::BindRepeating(&IgnoreWillDrawCallback)); |
+} |
+ |
bool DelegatedFrameHostAndroid::HasDelegatedContent() const { |
return surface_info_.is_valid(); |
} |