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

Unified Diff: services/ui/surfaces/display_compositor_frame_sink.cc

Issue 2468633002: Replaced cc::Display::SetSurfaceId() with SetLocalFrameId() (Closed)
Patch Set: Fixed Android compile errors 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: services/ui/surfaces/display_compositor_frame_sink.cc
diff --git a/services/ui/surfaces/display_compositor_frame_sink.cc b/services/ui/surfaces/display_compositor_frame_sink.cc
index bc7bd8353dce00e5fbb06127bf2f244e4e13ecf0..d68c64bf6bbb0b318894e6ff35818d7e2895bfde 100644
--- a/services/ui/surfaces/display_compositor_frame_sink.cc
+++ b/services/ui/surfaces/display_compositor_frame_sink.cc
@@ -73,10 +73,11 @@ DisplayCompositorFrameSink::DisplayCompositorFrameSink(
display_.reset(new cc::Display(
nullptr /* bitmap_manager */, gpu_memory_buffer_manager,
- cc::RendererSettings(), std::move(synthetic_begin_frame_source),
+ cc::RendererSettings(), frame_sink_id_,
+ std::move(synthetic_begin_frame_source),
std::move(display_output_surface), std::move(scheduler),
base::MakeUnique<cc::TextureMailboxDeleter>(task_runner_.get())));
- display_->Initialize(this, display_compositor_->manager(), frame_sink_id_);
+ display_->Initialize(this, display_compositor_->manager());
display_->SetVisible(true);
}
@@ -98,8 +99,8 @@ void DisplayCompositorFrameSink::SubmitCompositorFrame(
display_size_ = frame_size;
display_->Resize(display_size_);
}
- display_->SetSurfaceId(cc::SurfaceId(frame_sink_id_, local_frame_id_),
- frame.metadata.device_scale_factor);
+ display_->SetLocalFrameId(local_frame_id_,
+ frame.metadata.device_scale_factor);
factory_.SubmitCompositorFrame(local_frame_id_, std::move(frame), callback);
}

Powered by Google App Engine
This is Rietveld 408576698