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

Issue 1847983003: Fix for phase in background tiling. (Closed)

Created:
4 years, 8 months ago by Stephen Chennney
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for phase in background tiling. When computing the phase for background image tiling using snapped coordinates, we get very incorrect results, and unstable results, when the background-position is large (because the division of the position by the tile width magnifies the rounding artifacts). This patch changes the phase calculation to compute the phase using unsnapped values then re-apply the fractional component to the snapped values. This results in stable, near-pixel perfect results. Given very large background-positions, we can't do much better. There's a new test and some results changed by a pixel or so. There is some code refactoring to reduce what is becoming a very unwieldy method. Sorry that makes it harder to review. R=leviw@chromium.org BUG=593079 Committed: https://crrev.com/41f3d062c90c1a5d67228e6e061c7e35fd4d62fd Cr-Commit-Position: refs/heads/master@{#384706}

Patch Set 1 #

Patch Set 2 : More expectations #

Total comments: 9

Patch Set 3 : Code now better #

Messages

Total messages: 20 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847983003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847983003/1
4 years, 8 months ago (2016-03-31 21:16:58 UTC) #2
Stephen Chennney
It's ugly, but it works. Couldn't see a better way.
4 years, 8 months ago (2016-03-31 21:17:00 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/189198)
4 years, 8 months ago (2016-03-31 21:26:15 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847983003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847983003/20001
4 years, 8 months ago (2016-04-01 16:50:57 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 18:20:54 UTC) #9
leviw_travelin_and_unemployed
I looked at the bot runs from before you added test expectations but didn't see ...
4 years, 8 months ago (2016-04-01 20:16:41 UTC) #10
Stephen Chennney
Test failures were from a local run and the results of the first try job. ...
4 years, 8 months ago (2016-04-01 20:38:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847983003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847983003/40001
4 years, 8 months ago (2016-04-01 20:43:46 UTC) #15
leviw_travelin_and_unemployed
On 2016/04/01 at 20:38:36, schenney wrote: > Test failures were from a local run and ...
4 years, 8 months ago (2016-04-01 20:50:24 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-01 22:21:06 UTC) #18
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 22:23:32 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/41f3d062c90c1a5d67228e6e061c7e35fd4d62fd
Cr-Commit-Position: refs/heads/master@{#384706}

Powered by Google App Engine
This is Rietveld 408576698