| 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 b882ed8e2fad942ad7933d641db3b6607eacedb1..8ac7dad561240a8552e6d54aa3d510e89fea4008 100644
|
| --- a/ui/android/delegated_frame_host_android.cc
|
| +++ b/ui/android/delegated_frame_host_android.cc
|
| @@ -129,7 +129,6 @@ void DelegatedFrameHostAndroid::SubmitCompositorFrame(
|
|
|
| current_frame_ = base::MakeUnique<FrameData>();
|
| current_frame_->local_frame_id = surface_id_allocator_->GenerateId();
|
| - surface_factory_->Create(current_frame_->local_frame_id);
|
|
|
| current_frame_->surface_size = surface_size;
|
| current_frame_->top_controls_height = frame.metadata.top_controls_height;
|
| @@ -181,8 +180,7 @@ void DelegatedFrameHostAndroid::RequestCopyOfSurface(
|
| if (!src_subrect_in_pixel.IsEmpty())
|
| copy_output_request->set_area(src_subrect_in_pixel);
|
|
|
| - surface_factory_->RequestCopyOfSurface(current_frame_->local_frame_id,
|
| - std::move(copy_output_request));
|
| + surface_factory_->RequestCopyOfSurface(std::move(copy_output_request));
|
| }
|
|
|
| void DelegatedFrameHostAndroid::DestroyDelegatedContent() {
|
| @@ -193,7 +191,7 @@ void DelegatedFrameHostAndroid::DestroyDelegatedContent() {
|
|
|
| content_layer_->RemoveFromParent();
|
| content_layer_ = nullptr;
|
| - surface_factory_->Destroy(current_frame_->local_frame_id);
|
| + surface_factory_->EvictSurface();
|
| current_frame_.reset();
|
|
|
| UpdateBackgroundLayer();
|
|
|