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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.cc

Issue 2669183002: Seems incorrect to se device_scale_factor in SetLocalSurfaceId.
Patch Set: Seems incorrect to set device_scale_factor in SetLocalSurfaceId. Added new function SetDeviceScaleF… Created 3 years, 10 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
« no previous file with comments | « cc/ipc/display_compositor.mojom ('k') | cc/surfaces/display.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10b419ba5f76a4eb9df15e34898ab99907d43411..9749d7b5c2cc987a18d0eeba1b63295025ca9614 100644
--- a/cc/surfaces/direct_compositor_frame_sink.cc
+++ b/cc/surfaces/direct_compositor_frame_sink.cc
@@ -99,8 +99,8 @@ void DirectCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
delegated_local_surface_id_ = local_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);
support_->SubmitCompositorFrame(delegated_local_surface_id_,
std::move(frame));
« no previous file with comments | « cc/ipc/display_compositor.mojom ('k') | cc/surfaces/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698