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

Issue 1609573002: Fix SkAlphaThresholdFilter bounds handling. (Closed)

Created:
4 years, 11 months ago by Stephen White
Modified:
4 years, 11 months ago
Reviewers:
robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix SkAlphaThresholdFilter bounds handling. SkAlphaThresholdFilter was always allocating a mask texture of the same size as the source texture. In addition to potentially wasting VRAM, this could cause the mask to be offset from the source texture, if the resulting bounds were a different size than the source texture. The fix is to allocate a mask texture only as large as the bounds, and to offset it to the bounds origin on draw. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1609573002 Committed: https://skia.googlesource.com/skia/+/1ea67a31c527f4d5d77c59a3ea3a12e39308e8c5

Patch Set 1 #

Patch Set 2 : Speculative Win32 fix #

Patch Set 3 : Add raster fallback for surface creation failure in GM #

Patch Set 4 : Clear surface to white to fix serialize-8888 config #

Total comments: 4

Patch Set 5 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -36 lines) Patch
M gm/imagealphathreshold.cpp View 1 2 3 4 4 chunks +67 lines, -26 lines 0 comments Download
M src/effects/SkAlphaThresholdFilter.cpp View 1 8 chunks +33 lines, -10 lines 0 comments Download

Messages

Total messages: 25 (13 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/1609573002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609573002/20001
4 years, 11 months ago (2016-01-19 00:27:49 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/5321)
4 years, 11 months ago (2016-01-19 00:29:10 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/1609573002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609573002/40001
4 years, 11 months ago (2016-01-19 01:02:58 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/5322)
4 years, 11 months ago (2016-01-19 01:06:38 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1609573002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609573002/60001
4 years, 11 months ago (2016-01-19 16:14:31 UTC) #11
Stephen White
Rob: PTAL. Thanks!
4 years, 11 months ago (2016-01-19 16:23:53 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-19 16:30:13 UTC) #17
robertphillips
lgtm + nits https://codereview.chromium.org/1609573002/diff/60001/gm/imagealphathreshold.cpp File gm/imagealphathreshold.cpp (right): https://codereview.chromium.org/1609573002/diff/60001/gm/imagealphathreshold.cpp#newcode18 gm/imagealphathreshold.cpp:18: void draw_rects(SkCanvas* canvas) { rectPaint ? ...
4 years, 11 months ago (2016-01-19 16:35:15 UTC) #18
robertphillips
lgtm + nits
4 years, 11 months ago (2016-01-19 16:35:16 UTC) #19
Stephen White
Thanks for your review. https://codereview.chromium.org/1609573002/diff/60001/gm/imagealphathreshold.cpp File gm/imagealphathreshold.cpp (right): https://codereview.chromium.org/1609573002/diff/60001/gm/imagealphathreshold.cpp#newcode18 gm/imagealphathreshold.cpp:18: void draw_rects(SkCanvas* canvas) { On ...
4 years, 11 months ago (2016-01-19 16:38:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1609573002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1609573002/80001
4 years, 11 months ago (2016-01-19 16:38:44 UTC) #23
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 16:50:21 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/1ea67a31c527f4d5d77c59a3ea3a12e39308e8c5

Powered by Google App Engine
This is Rietveld 408576698