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

Unified Diff: services/ui/ws/window_tree_client_unittest.cc

Issue 2547243002: Set device scale factor in CompositorFrame and scale frame size in WS. (Closed)
Patch Set: test Created 4 years 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 | « services/ui/ws/platform_display_default.cc ('k') | ui/display/screen_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_tree_client_unittest.cc
diff --git a/services/ui/ws/window_tree_client_unittest.cc b/services/ui/ws/window_tree_client_unittest.cc
index 66c7bfde90759c1eafb491e536989a4050e1891a..467ac500b1a5f04e69a95a5fc9809bea3edcdc59 100644
--- a/services/ui/ws/window_tree_client_unittest.cc
+++ b/services/ui/ws/window_tree_client_unittest.cc
@@ -2166,6 +2166,7 @@ TEST_F(WindowTreeClientTest, SurfaceIdPropagation) {
gfx::Rect frame_rect(0, 0, 100, 100);
render_pass->SetNew(1, frame_rect, frame_rect, gfx::Transform());
compositor_frame.render_pass_list.push_back(std::move(render_pass));
+ compositor_frame.metadata.device_scale_factor = 1.f;
cc::LocalFrameId local_frame_id(1, base::UnguessableToken::Create());
surface_ptr->SubmitCompositorFrame(local_frame_id,
std::move(compositor_frame));
« no previous file with comments | « services/ui/ws/platform_display_default.cc ('k') | ui/display/screen_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698