Fix cropped snapshots in layout tests
Layout tests modify their device scale factor without notifying the browser. This results in the browser making mistakes when calculating the pixel size of the renderer. As a workaround, don't set CopyOutputRequest's area if neither src_subrect or output_size is provided to CopyFromCompositingSurface in order to avoid mismatch between the area and the actual surface size. Bug: 895556 Change-Id: I6096c1d2ef05919e3c7ea8c7a43f922c9d96cc7a Reviewed-on: https://chromium-review.googlesource.com/c/1298112Reviewed-by:Khushal <khushalsagar@chromium.org> Reviewed-by:
Antoine Labour <piman@chromium.org> Reviewed-by:
Mason Freed <masonfreed@chromium.org> Commit-Queue: Saman Sami <samans@chromium.org> Cr-Commit-Position: refs/heads/master@{#602862}
Showing
Please register or sign in to comment