You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know how to get the pixel density in build_layer_properties. Usually, we use page_rect and screen_screen, but here, I don't know how to get this info.
I think one issue here is that the layer boundaries are rounded instead of expanded to pixel boundaries. I have a fix for this which depends on servo/app_units#3 (though I don't have a readily accessible hidpi screen to test it on).
Activity
paulrouget commentedon Oct 23, 2015
/cc @mrobinson
paulrouget commentedon Oct 23, 2015
Using
to_nearest_pixelinstead ofto_nearest_pxincomponents/gfx/paint_task.rsappears to solve the issue. I'll submit a PR.paulrouget commentedon Oct 23, 2015
I don't know how to get the pixel density in
build_layer_properties. Usually, we usepage_rectandscreen_screen, but here, I don't know how to get this info.mrobinson commentedon Oct 27, 2015
I think one issue here is that the layer boundaries are rounded instead of expanded to pixel boundaries. I have a fix for this which depends on servo/app_units#3 (though I don't have a readily accessible hidpi screen to test it on).
glennw commentedon Oct 27, 2015
@mrobinson Depending on what you're testing, you may be able to use --device-pixel-ratio=2 even on a non-hidpi monitor to test with.
Expand DisplayList layer bounds to whole pixel
Expand DisplayList layer bounds to whole pixels
Auto merge of #8244 - mrobinson:layer-size, r=pcwalton