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

Unified Diff: content/browser/frame_host/render_widget_host_view_guest.cc

Issue 2485473003: Remove SurfaceFactory::Create and SurfaceFactory::Destroy (Closed)
Patch Set: up 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
Index: content/browser/frame_host/render_widget_host_view_guest.cc
diff --git a/content/browser/frame_host/render_widget_host_view_guest.cc b/content/browser/frame_host/render_widget_host_view_guest.cc
index 48ec3e287564e7d4223d350fb0dedbc504ab76a3..7a6de5b3dee234903574305106b7fe65601f9225 100644
--- a/content/browser/frame_host/render_widget_host_view_guest.cc
+++ b/content/browser/frame_host/render_widget_host_view_guest.cc
@@ -288,7 +288,6 @@ void RenderWidgetHostViewGuest::OnSwapCompositorFrame(
// frame renderer has changed its output surface, or size, or scale factor.
if (compositor_frame_sink_id != last_compositor_frame_sink_id_ &&
surface_factory_) {
- surface_factory_->Destroy(local_frame_id_);
surface_factory_.reset();
}
if (compositor_frame_sink_id != last_compositor_frame_sink_id_ ||
@@ -309,7 +308,9 @@ void RenderWidgetHostViewGuest::OnSwapCompositorFrame(
if (local_frame_id_.is_null()) {
local_frame_id_ = id_allocator_->GenerateId();
- surface_factory_->Create(local_frame_id_);
+ surface_factory_->SubmitCompositorFrame(local_frame_id_,
Fady Samuel 2016/11/08 22:23:59 I don't think this approach is correct. We shouldn
Saman Sami 2016/11/11 17:49:58 Done.
+ cc::CompositorFrame(),
+ cc::SurfaceFactory::DrawCallback());
cc::SurfaceSequence sequence =
cc::SurfaceSequence(frame_sink_id_, next_surface_sequence_++);

Powered by Google App Engine
This is Rietveld 408576698