pub fn to_cache_size(
    size: LayoutSize,
    device_pixel_scale: &mut Scale<f32, LayoutPixel, DevicePixel>
) -> DeviceIntSize