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

Unified Diff: cc/test/test_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: 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 9a7241f642acafe702e09c065718ed4fca582b04..7cac9ba7c7fe0d4569334b24213916fc9c3e4465 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);

Powered by Google App Engine
This is Rietveld 408576698