Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: ui/android/delegated_frame_host_android.cc

Issue 2506883002: Revert of Remove SurfaceFactory::Create and SurfaceFactory::Destroy (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/gpu_compositor_frame_sink.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 975951e9e807cfcdae27533f5a43e63f87f200e0..da0d50b04755805961f9c7146159663dcc23ec00 100644
--- a/ui/android/delegated_frame_host_android.cc
+++ b/ui/android/delegated_frame_host_android.cc
@@ -129,6 +129,7 @@
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;
@@ -191,7 +192,7 @@
content_layer_->RemoveFromParent();
content_layer_ = nullptr;
- surface_factory_->EvictSurface();
+ surface_factory_->Destroy(current_frame_->local_frame_id);
current_frame_.reset();
UpdateBackgroundLayer();
« no previous file with comments | « services/ui/ws/gpu_compositor_frame_sink.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698