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

Unified Diff: cc/test/test_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/surfaces/display_unittest.cc ('k') | components/display_compositor/gpu_root_compositor_frame_sink.h » ('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 e07ada5bde2efb3ac16da5d2d84da6af3a1b1f96..8f95ab3d36eb2a2ccf483c051c8316b6227c182b 100644
--- a/cc/test/test_compositor_frame_sink.cc
+++ b/cc/test/test_compositor_frame_sink.cc
@@ -130,8 +130,8 @@ void TestCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
if (!delegated_local_surface_id_.is_valid()) {
delegated_local_surface_id_ = local_surface_id_allocator_->GenerateId();
}
- display_->SetLocalSurfaceId(delegated_local_surface_id_,
- frame.metadata.device_scale_factor);
+ display_->SetLocalSurfaceId(delegated_local_surface_id_);
+ display_->SetDeviceScaleFactor(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') | components/display_compositor/gpu_root_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698