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

Unified Diff: cc/test/test_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
« no previous file with comments | « cc/surfaces/display_unittest.cc ('k') | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_compositor_frame_sink.cc
diff --git a/cc/test/test_compositor_frame_sink.cc b/cc/test/test_compositor_frame_sink.cc
index 9c7cdb0e664dfd73c755dbb7a5070863d357e9c8..b9d4a78da9794ad02dd07d0dfdbb907075d04325 100644
--- a/cc/test/test_compositor_frame_sink.cc
+++ b/cc/test/test_compositor_frame_sink.cc
@@ -86,11 +86,11 @@ bool TestCompositorFrameSink::BindToClient(CompositorFrameSinkClient* client) {
display_output_surface->capabilities().max_frames_pending));
}
- display_.reset(
- new Display(shared_bitmap_manager(), gpu_memory_buffer_manager(),
- renderer_settings_, std::move(begin_frame_source),
- std::move(display_output_surface), std::move(scheduler),
- base::MakeUnique<TextureMailboxDeleter>(task_runner_.get())));
+ display_.reset(new Display(
+ shared_bitmap_manager(), gpu_memory_buffer_manager(), renderer_settings_,
+ frame_sink_id_, std::move(begin_frame_source),
+ std::move(display_output_surface), std::move(scheduler),
+ base::MakeUnique<TextureMailboxDeleter>(task_runner_.get())));
// We want the Display's OutputSurface to hear about lost context, and when
// this shares a context with it we should not be listening for lost context
@@ -100,7 +100,7 @@ bool TestCompositorFrameSink::BindToClient(CompositorFrameSinkClient* client) {
surface_manager_->RegisterFrameSinkId(frame_sink_id_);
surface_manager_->RegisterSurfaceFactoryClient(frame_sink_id_, this);
- display_->Initialize(this, surface_manager_.get(), frame_sink_id_);
+ display_->Initialize(this, surface_manager_.get());
display_->renderer_for_testing()->SetEnlargePassTextureAmountForTesting(
enlarge_pass_texture_amount_);
display_->SetVisible(true);
@@ -132,8 +132,8 @@ void TestCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
delegated_local_frame_id_ = surface_id_allocator_->GenerateId();
surface_factory_->Create(delegated_local_frame_id_);
}
- display_->SetSurfaceId(SurfaceId(frame_sink_id_, delegated_local_frame_id_),
- frame.metadata.device_scale_factor);
+ display_->SetLocalFrameId(delegated_local_frame_id_,
+ frame.metadata.device_scale_factor);
gfx::Size frame_size = frame.render_pass_list.back()->output_rect.size();
display_->Resize(frame_size);
« no previous file with comments | « cc/surfaces/display_unittest.cc ('k') | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698