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

Issue 7037050: Added a new function to directly generate a blurred rectangle analytically. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 12 months ago by Humper
Modified:
11 years, 12 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Added a new function to directly generate a blurred rectangle analytically. Added two new microbenchmarks to demonstrate speedup over existing BlurSeparable approach. Added new GM tests for blurred rectangles. Committed: https://code.google.com/p/skia/source/detail?r=7034

Patch Set 1 #

Total comments: 28

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -3 lines) Patch
M bench/BitmapRectBench.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
A bench/BlurRectBench.cpp View 1 2 1 chunk +133 lines, -0 lines 0 comments Download
M gm/blurrect.cpp View 1 2 3 4 3 chunks +85 lines, -1 line 0 comments Download
M gyp/SampleApp.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gyp/bench.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gyp/bench.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gyp/gm.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkBlurMask.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M src/effects/SkBlurMask.cpp View 1 2 3 4 5 3 chunks +161 lines, -1 line 0 comments Download

Messages

Total messages: 17
Humper
11 years, 12 months ago (2013-01-03 22:07:42 UTC) #1
bsalomon
Mostly LGTM. I have some pesky style nits below. https://codereview.appspot.com/7037050/diff/1/bench/BlurMaskBench.cpp File bench/BlurMaskBench.cpp (right): https://codereview.appspot.com/7037050/diff/1/bench/BlurMaskBench.cpp#newcode3 bench/BlurMaskBench.cpp:3: ...
11 years, 12 months ago (2013-01-04 14:04:50 UTC) #2
Stephen White
https://codereview.appspot.com/7037050/diff/1/bench/BlurMaskBench.cpp File bench/BlurMaskBench.cpp (right): https://codereview.appspot.com/7037050/diff/1/bench/BlurMaskBench.cpp#newcode21 bench/BlurMaskBench.cpp:21: class BlurMaskBench: public SkBenchmark { I'd prefer that we ...
11 years, 12 months ago (2013-01-04 15:16:58 UTC) #3
Humper
https://codereview.appspot.com/7037050/diff/1/bench/BlurRectBench.cpp File bench/BlurRectBench.cpp (right): https://codereview.appspot.com/7037050/diff/1/bench/BlurRectBench.cpp#newcode16 bench/BlurRectBench.cpp:16: #define SMALL SkIntToScalar(2) On 2013/01/04 14:04:50, bsalomon wrote: > ...
11 years, 12 months ago (2013-01-04 15:59:35 UTC) #4
Stephen White
https://codereview.appspot.com/7037050/diff/1/src/effects/SkBlurMask.cpp File src/effects/SkBlurMask.cpp (right): https://codereview.appspot.com/7037050/diff/1/src/effects/SkBlurMask.cpp#newcode1110 src/effects/SkBlurMask.cpp:1110: float radius = provided_radius * .57735; On 2013/01/04 15:59:35, ...
11 years, 12 months ago (2013-01-04 16:22:14 UTC) #5
reed1
Not so sure we need to move the header. SkBlurMask is only called from within ...
11 years, 12 months ago (2013-01-04 16:29:55 UTC) #6
reed1
modulo one caller in SampleStrokePath, but I don't count our hacking demo code :)
11 years, 12 months ago (2013-01-04 16:30:27 UTC) #7
Stephen White
On 2013/01/04 16:29:55, reed1 wrote: > Not so sure we need to move the header. ...
11 years, 12 months ago (2013-01-04 16:31:14 UTC) #8
Humper
https://codereview.appspot.com/7037050/diff/1/src/effects/SkBlurMask.cpp File src/effects/SkBlurMask.cpp (right): https://codereview.appspot.com/7037050/diff/1/src/effects/SkBlurMask.cpp#newcode1110 src/effects/SkBlurMask.cpp:1110: float radius = provided_radius * .57735; On 2013/01/04 16:22:14, ...
11 years, 12 months ago (2013-01-04 17:04:56 UTC) #9
Stephen White
https://codereview.appspot.com/7037050/diff/16003/src/effects/SkBlurMask.cpp File src/effects/SkBlurMask.cpp (right): https://codereview.appspot.com/7037050/diff/16003/src/effects/SkBlurMask.cpp#newcode21 src/effects/SkBlurMask.cpp:21: #define kBlurRadiusFudgeFactor .57735f This isn't an SkScalar. I think ...
11 years, 12 months ago (2013-01-04 17:19:06 UTC) #10
Humper
https://codereview.appspot.com/7037050/diff/16003/src/effects/SkBlurMask.cpp File src/effects/SkBlurMask.cpp (right): https://codereview.appspot.com/7037050/diff/16003/src/effects/SkBlurMask.cpp#newcode21 src/effects/SkBlurMask.cpp:21: #define kBlurRadiusFudgeFactor .57735f On 2013/01/04 17:19:06, Stephen White wrote: ...
11 years, 12 months ago (2013-01-04 18:46:21 UTC) #11
Stephen White
https://codereview.appspot.com/7037050/diff/16003/src/effects/SkBlurMask.cpp File src/effects/SkBlurMask.cpp (right): https://codereview.appspot.com/7037050/diff/16003/src/effects/SkBlurMask.cpp#newcode21 src/effects/SkBlurMask.cpp:21: #define kBlurRadiusFudgeFactor .57735f On 2013/01/04 18:46:21, Humper wrote: > ...
11 years, 12 months ago (2013-01-04 19:14:53 UTC) #12
reed1
https://codereview.appspot.com/7037050/diff/20001/src/effects/SkBlurMask.cpp File src/effects/SkBlurMask.cpp (right): https://codereview.appspot.com/7037050/diff/20001/src/effects/SkBlurMask.cpp#newcode877 src/effects/SkBlurMask.cpp:877: SkScalar passRadius = (kHigh_Quality == quality) ? radius * ...
11 years, 12 months ago (2013-01-04 19:17:05 UTC) #13
Stephen White
https://codereview.appspot.com/7037050/diff/20001/src/effects/SkBlurMask.cpp File src/effects/SkBlurMask.cpp (right): https://codereview.appspot.com/7037050/diff/20001/src/effects/SkBlurMask.cpp#newcode877 src/effects/SkBlurMask.cpp:877: SkScalar passRadius = (kHigh_Quality == quality) ? radius * ...
11 years, 12 months ago (2013-01-04 19:45:56 UTC) #14
Humper
https://codereview.appspot.com/7037050/diff/20001/src/effects/SkBlurMask.cpp File src/effects/SkBlurMask.cpp (right): https://codereview.appspot.com/7037050/diff/20001/src/effects/SkBlurMask.cpp#newcode877 src/effects/SkBlurMask.cpp:877: SkScalar passRadius = (kHigh_Quality == quality) ? radius * ...
11 years, 12 months ago (2013-01-04 19:47:42 UTC) #15
Stephen White
LGTM. Thanks for going the extra .57735 miles.
11 years, 12 months ago (2013-01-04 19:55:46 UTC) #16
bsalomon
11 years, 12 months ago (2013-01-04 20:16:21 UTC) #17
On 2013/01/04 19:55:46, Stephen White wrote:
> LGTM.  Thanks for going the extra .57735 miles.

lgtm
Sign in to reply to this message.

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