[SPv175] Pixel-snap clips in PaintPropertyTreeBuilder.
In SPv175 mode, we know the precise subpixel positions of every object relative to its composited backing. Therefore we can apply pixel snapping during pre-paint. This is also necessary because the paint code can no longer do this pixel-snapping in SPv175 mode, as the paired display item serialization happens in PaintChunksToCcLayer, which by design knows nothing about paint offsets or snapping. To support testing this in SPv1 mode, also add testing of that mode to PaintPropertyTreeBuilderTest.cpp, and adjust test results accordingly. Bug: 804010 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I9f2dbc13237c9aa6919faa6835f59ec465a06508 Reviewed-on: https://chromium-review.googlesource.com/896602 Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#533853}
Showing
This diff is collapsed.
Please register or sign in to comment