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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.cc

Issue 2669183002: Seems incorrect to se device_scale_factor in SetLocalSurfaceId.
Patch Set: Created 3 years, 11 months 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/surfaces/direct_compositor_frame_sink.cc
diff --git a/cc/surfaces/direct_compositor_frame_sink.cc b/cc/surfaces/direct_compositor_frame_sink.cc
index 10c37ee7cc3842ae45d3b48987aead9a936d9612..0bda784934b3f13a8b93d2dd7089494324b89e5e 100644
--- a/cc/surfaces/direct_compositor_frame_sink.cc
+++ b/cc/surfaces/direct_compositor_frame_sink.cc
@@ -93,8 +93,8 @@ void DirectCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
delegated_local_surface_id_ = surface_id_allocator_.GenerateId();
last_swap_frame_size_ = frame_size;
}
- display_->SetLocalSurfaceId(delegated_local_surface_id_,
- frame.metadata.device_scale_factor);
+ display_->SetLocalSurfaceId(delegated_local_surface_id_);
+ display_->SetDeviceScaleFactor(frame.metadata.device_scale_factor);
factory_.SubmitCompositorFrame(
delegated_local_surface_id_, std::move(frame),

Powered by Google App Engine
This is Rietveld 408576698