Index: android_webview/browser/surfaces_instance.cc |
diff --git a/android_webview/browser/surfaces_instance.cc b/android_webview/browser/surfaces_instance.cc |
index ef96e989804b30acded4c6eb47684a526ad8f56c..22d78cd02753a295ca5322e228c8c9dab70a096f 100644 |
--- a/android_webview/browser/surfaces_instance.cc |
+++ b/android_webview/browser/surfaces_instance.cc |
@@ -85,8 +85,6 @@ SurfacesInstance::~SurfacesInstance() { |
g_surfaces_instance = nullptr; |
DCHECK(child_ids_.empty()); |
- if (!root_id_.is_null()) |
- surface_factory_->Destroy(root_id_); |
surface_manager_->InvalidateFrameSinkId(frame_sink_id_); |
} |
@@ -138,7 +136,6 @@ void SurfacesInstance::DrawAndSwap(const gfx::Size& viewport, |
if (root_id_.is_null()) { |
root_id_ = surface_id_allocator_->GenerateId(); |
- surface_factory_->Create(root_id_); |
display_->SetSurfaceId(cc::SurfaceId(frame_sink_id_, root_id_), 1.f); |
} |
surface_factory_->SubmitCompositorFrame(root_id_, std::move(frame), |