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

Issue 6851117: Modify the blur bench to add tests for high-quality blurs, and large non-integer blurs. Change the… (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

Modify the blur bench to add tests for high-quality blurs, and large non-integer blurs. Change the Coarse flag (which just turns on separable blurs) to an #ifdef, since separable is no longer just Coarse. (This #ifdef will hopefully be shortlived, once Chrome has switched). The separable blur algorithm gives +45% on SampleBlur, +84% on SampleBigBlur, +31% on TheVerge, +35 to +85% on blurbench in HQ (depending on size), +8 to +35% in low quality. (All of these on 32bit MacPro). Committed: https://code.google.com/p/skia/source/detail?r=6601

Patch Set 1 #

Patch Set 2 : actually plumb through the blur flags! #

Patch Set 3 : Make "low quality" mean box blur in separable too; drop to low quality for <3 radius, as the old pa… #

Patch Set 4 : Don't actually switch on the separable blurs yet. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -41 lines) Patch
M bench/BlurBench.cpp View 1 4 chunks +21 lines, -4 lines 0 comments Download
M include/effects/SkBlurDrawLooper.h View 1 chunk +1 line, -3 lines 0 comments Download
M include/effects/SkBlurMaskFilter.h View 1 chunk +1 line, -3 lines 0 comments Download
M src/effects/SkBlurDrawLooper.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M src/effects/SkBlurMask.cpp View 1 2 2 chunks +29 lines, -20 lines 2 comments Download
M src/effects/SkBlurMaskFilter.cpp View 3 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 6
Stephen White
PTAL
11 years, 7 months ago (2012-11-28 20:48:30 UTC) #1
reed1
This change looks good. Did you mean to add tests or benches to this CL?
11 years, 7 months ago (2012-11-28 21:34:19 UTC) #2
reed1
n/m -- I just missed that file :)
11 years, 7 months ago (2012-11-28 21:34:43 UTC) #3
reed1
lgtm
11 years, 7 months ago (2012-11-28 21:35:09 UTC) #4
reed1
lgtm (with trivial style nits) can you add quick perf summary/chart to the CL comment ...
11 years, 7 months ago (2012-11-29 14:40:13 UTC) #5
Stephen White
11 years, 7 months ago (2012-11-29 17:08:52 UTC) #6
On 2012/11/29 14:40:13, reed1 wrote:
> lgtm (with trivial style nits)
> 
> can you add quick perf summary/chart to the CL comment (unless that is pending
> some other perf change later on).

Done.

> https://codereview.appspot.com/6851117/diff/2003/src/effects/SkBlurMask.cpp
> File src/effects/SkBlurMask.cpp (right):
> 
>
https://codereview.appspot.com/6851117/diff/2003/src/effects/SkBlurMask.cpp#n...
> src/effects/SkBlurMask.cpp:862: // Force high quality off for small radii
> (performance)
> nit: use { } for the 'if' statement.

Will fix on landing.

https://codereview.appspot.com/6851117/diff/2003/src/effects/SkBlurMask.cpp#n...
> src/effects/SkBlurMask.cpp:912: get_adjusted_radii(passRadius, &loRadius,
> &hiRadius);
> nit: if (kHigh_Quality == quality) {
> 
> reverse the compare to avoid accidental assignment.

Will fix on landing (here and elsewhere in this file).
Sign in to reply to this message.

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