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

Unified Diff: services/ui/ws/server_window_compositor_frame_sink.cc

Issue 2468633002: Replaced cc::Display::SetSurfaceId() with SetLocalFrameId() (Closed)
Patch Set: rebase and minor bug fixes 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/ws/server_window_compositor_frame_sink.cc
diff --git a/services/ui/ws/server_window_compositor_frame_sink.cc b/services/ui/ws/server_window_compositor_frame_sink.cc
index 7cb88a4162730ce4e5284a549fcbbf35d13e0ef1..803e4a0c806f9f1bd177ec0c81a6375a1d071d42 100644
--- a/services/ui/ws/server_window_compositor_frame_sink.cc
+++ b/services/ui/ws/server_window_compositor_frame_sink.cc
@@ -83,8 +83,8 @@ void ServerWindowCompositorFrameSink::SubmitCompositorFrame(
base::Bind(&ServerWindowCompositorFrameSink::DidReceiveCompositorFrameAck,
base::Unretained(this)));
if (display_) {
- 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);
}
last_submitted_frame_size_ = frame_size;
}
@@ -150,10 +150,11 @@ void ServerWindowCompositorFrameSink::InitDisplay(
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);
}
« no previous file with comments | « content/renderer/android/synchronous_compositor_frame_sink.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698