diff options
author | 2016-01-07 08:02:25 -0800 | |
---|---|---|
committer | 2016-01-07 08:02:26 -0800 | |
commit | 983dc2541a729609037a05eba731b3eb9788c517 (patch) | |
tree | 352e3f143db88ea70b09e5c1893660046edaa44c /samplecode/SampleLayers.cpp | |
parent | c070d1514ace6b672d5dbaaa3090d27698400f1f (diff) |
SkTreatAsSprite should take AA into account
Currently we always call SkTreatAsSprite with 0 subpixel bits, which means
subpixel translations are ignored. This is incorrect for the anti-aliased
case (drawSprite always pixel-snaps, so we lose edge AA).
The CL updates SkTreatAsSprite to take an SkPaint argument and use 8 subpixel
bits when AA is requested.
Also remove unused SkTreatAsSpriteFilter.
BUG=skia:4761
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1566943002
Review URL: https://codereview.chromium.org/1566943002
Diffstat (limited to 'samplecode/SampleLayers.cpp')
0 files changed, 0 insertions, 0 deletions