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

Issue 1566943002: SkTreatAsSprite should take AA into account (Closed)

Created:
4 years, 11 months ago by f(malita)
Modified:
4 years, 11 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org, vmpstr
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/983dc2541a729609037a05eba731b3eb9788c517 Committed: https://skia.googlesource.com/skia/+/c7e211acd0c9201688de7ff0c9a2271c67440adf

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : 4 subpixel bits #

Total comments: 2

Patch Set 5 : comment #

Patch Set 6 : SkLeftShift #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -63 lines) Patch
M src/core/SkCanvas.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkDraw.cpp View 2 chunks +3 lines, -11 lines 0 comments Download
M src/core/SkMatrix.cpp View 1 2 3 4 5 3 chunks +13 lines, -7 lines 0 comments Download
M src/core/SkMatrixUtils.h View 1 2 1 chunk +6 lines, -23 lines 0 comments Download
M tests/DrawBitmapRectTest.cpp View 1 2 3 3 chunks +18 lines, -20 lines 0 comments Download

Messages

Total messages: 37 (17 generated)
f(malita)
This also improves GM:image_scale_aligned: the anti-aliased cases are now properly aligned.
4 years, 11 months ago (2016-01-07 03:09:45 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566943002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566943002/40001
4 years, 11 months ago (2016-01-07 03:10:01 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-07 03:29:41 UTC) #8
f(malita)
On 2016/01/07 03:09:45, f(malita) wrote: > This also improves GM:image_scale_aligned: the anti-aliased cases are now ...
4 years, 11 months ago (2016-01-07 03:42:42 UTC) #9
reed1
https://codereview.chromium.org/1566943002/diff/40001/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.chromium.org/1566943002/diff/40001/src/core/SkMatrix.cpp#newcode1628 src/core/SkMatrix.cpp:1628: static const unsigned kAntiAliasSubpixelBits = 8; we have various ...
4 years, 11 months ago (2016-01-07 14:40:50 UTC) #10
f(malita)
https://codereview.chromium.org/1566943002/diff/40001/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.chromium.org/1566943002/diff/40001/src/core/SkMatrix.cpp#newcode1628 src/core/SkMatrix.cpp:1628: static const unsigned kAntiAliasSubpixelBits = 8; On 2016/01/07 14:40:50, ...
4 years, 11 months ago (2016-01-07 15:19:00 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566943002/60001
4 years, 11 months ago (2016-01-07 15:19:09 UTC) #13
reed1
lgtm
4 years, 11 months ago (2016-01-07 15:28:47 UTC) #14
reed1
https://codereview.chromium.org/1566943002/diff/60001/src/core/SkMatrix.cpp File src/core/SkMatrix.cpp (right): https://codereview.chromium.org/1566943002/diff/60001/src/core/SkMatrix.cpp#newcode1627 src/core/SkMatrix.cpp:1627: static const unsigned kAntiAliasSubpixelBits = 4; maybe a comment, ...
4 years, 11 months ago (2016-01-07 15:29:59 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-07 15:35:06 UTC) #17
f(malita)
I haven't noticed any locally, but there's a chance this will yield some minor layout ...
4 years, 11 months ago (2016-01-07 15:39:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566943002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566943002/80001
4 years, 11 months ago (2016-01-07 15:39:58 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/983dc2541a729609037a05eba731b3eb9788c517
4 years, 11 months ago (2016-01-07 16:02:32 UTC) #23
reed1
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/1569873003/ by reed@google.com. ...
4 years, 11 months ago (2016-01-07 17:15:13 UTC) #24
f(malita)
On 2016/01/07 17:15:13, reed1 wrote: > A revert of this CL (patchset #5 id:80001) has ...
4 years, 11 months ago (2016-01-07 17:27:17 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566943002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566943002/100001
4 years, 11 months ago (2016-01-07 17:27:31 UTC) #28
f(malita)
On 2016/01/07 17:27:17, f(malita) wrote: > On 2016/01/07 17:15:13, reed1 wrote: > > A revert ...
4 years, 11 months ago (2016-01-07 18:11:32 UTC) #30
mtklein
lgtm
4 years, 11 months ago (2016-01-07 18:34:04 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566943002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566943002/100001
4 years, 11 months ago (2016-01-07 18:34:09 UTC) #35
commit-bot: I haz the power
4 years, 11 months ago (2016-01-07 18:34:50 UTC) #37
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/c7e211acd0c9201688de7ff0c9a2271c67440adf

Powered by Google App Engine
This is Rietveld 408576698