Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2055)

Issue 6782089: Separable mask blurs: Add compile-time flag. Fix reversed offsets in asymmetrical blurs (this bug… (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by Stephen White
Modified:
11 years, 7 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Separable mask blurs: Add compile-time flag. Fix reversed offsets in asymmetrical blurs (this bug cancels itself out, but I thought it might be confusing for future readers). Use correct stride in asymmetrical blurs (this is a real bug). Committed: https://code.google.com/p/skia/source/detail?r=6508

Patch Set 1 #

Patch Set 2 : Change #ifdef to a runtime flag #

Total comments: 3

Patch Set 3 : Fix bug in draw looper flag setting. #

Patch Set 4 : Add comment to SkBlurDrawLooper. #

Total comments: 1

Patch Set 5 : Fix hex #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -8 lines) Patch
M include/effects/SkBlurDrawLooper.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M include/effects/SkBlurMaskFilter.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/effects/SkBlurDrawLooper.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/effects/SkBlurMask.cpp View 2 chunks +6 lines, -4 lines 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 8
Stephen White
PTAL
11 years, 7 months ago (2012-11-19 20:26:59 UTC) #1
reed1
lgtm What do you think the default for skia should be? the separable version? Is ...
11 years, 7 months ago (2012-11-19 21:12:35 UTC) #2
Stephen White
On 2012/11/19 21:12:35, reed1 wrote: > lgtm > > What do you think the default ...
11 years, 7 months ago (2012-11-19 21:22:04 UTC) #3
Stephen White
OK, I've changed the #ifdef to a runtime flag. PTAL.
11 years, 7 months ago (2012-11-19 22:34:21 UTC) #4
reed1
I like the name https://codereview.appspot.com/6782089/diff/4001/include/effects/SkBlurDrawLooper.h File include/effects/SkBlurDrawLooper.h (right): https://codereview.appspot.com/6782089/diff/4001/include/effects/SkBlurDrawLooper.h#newcode33 include/effects/SkBlurDrawLooper.h:33: kHighQuality_BlurFlag = 0x04, might add ...
11 years, 7 months ago (2012-11-20 15:25:57 UTC) #5
Stephen White
Also added the comment as requested. https://codereview.appspot.com/6782089/diff/4001/src/effects/SkBlurDrawLooper.cpp File src/effects/SkBlurDrawLooper.cpp (right): https://codereview.appspot.com/6782089/diff/4001/src/effects/SkBlurDrawLooper.cpp#newcode31 src/effects/SkBlurDrawLooper.cpp:31: SkBlurMaskFilter::kCoarseRadius_BlurFlag : On ...
11 years, 7 months ago (2012-11-20 15:33:13 UTC) #6
reed1
seems like we should add a gm and bench, to exercise the new flag. https://codereview.appspot.com/6782089/diff/11/include/effects/SkBlurDrawLooper.h ...
11 years, 7 months ago (2012-11-20 15:38:33 UTC) #7
reed1
11 years, 7 months ago (2012-11-20 16:03:22 UTC) #8
btw -- in general I think this sort of change should come with tests, but in
this case I know you have been locally timing it, so we can add the gm/bench as
a 2nd CL if you wish.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b