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

Issue 21835004: Blur refactoring (Closed)

Created:
7 years, 4 months ago by robertphillips
Modified:
7 years, 3 months ago
Reviewers:
humper, bsalomon, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

This CL pushes the radius -> sigma fudging up to the boundary of Skia's API. All the action is in SkBlurMask.cpp, SkBlurMaskFilter.cpp and SkEmbossMaskFilter.cpp. The next steps will be: 1) push the fudging across the API and into our tests 2) move the "unused" param from new to old methods 3) push the fudging across the API and into Blink 4) remove old methods (which now have the "unused" param) With 3 having to happen in the same roll as 2.

Patch Set 1 #

Patch Set 2 : Cleaned up #

Patch Set 3 : hide constant #

Total comments: 4

Patch Set 4 : use different signatures vs. "unused" parameter to differentiate radius & sigma -based blur methods #

Patch Set 5 : Minor cleanup #

Total comments: 1

Patch Set 6 : Update to ToT #

Patch Set 7 : Fixed file format issue #

Patch Set 8 : Removed unneeded #includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -197 lines) Patch
M bench/BlurRectBench.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M gm/blurrect.cpp View 1 2 3 4 5 2 chunks +10 lines, -11 lines 0 comments Download
M gm/blurs.cpp View 1 2 3 4 5 1 chunk +10 lines, -12 lines 0 comments Download
M gm/circles.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M gm/rects.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M gm/shadows.cpp View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M include/effects/SkBlurDrawLooper.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M include/effects/SkBlurMaskFilter.h View 1 2 3 4 5 1 chunk +18 lines, -6 lines 0 comments Download
M include/effects/SkEmbossMaskFilter.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M samplecode/SampleAll.cpp View 1 2 3 4 5 3 chunks +7 lines, -4 lines 0 comments Download
M samplecode/SampleXfermodesBlur.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/animator/SkDrawEmboss.h View 1 2 3 4 5 1 chunk +7 lines, -3 lines 0 comments Download
M src/animator/SkDrawEmboss.cpp View 1 2 3 4 5 1 chunk +9 lines, -8 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkBlurDrawLooper.cpp View 1 2 3 4 5 3 chunks +20 lines, -5 lines 0 comments Download
M src/effects/SkBlurMask.h View 1 2 3 4 5 1 chunk +23 lines, -13 lines 0 comments Download
M src/effects/SkBlurMask.cpp View 1 2 3 4 5 10 chunks +61 lines, -37 lines 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 5 6 7 10 chunks +57 lines, -76 lines 0 comments Download
M src/effects/SkEmbossMaskFilter.cpp View 1 2 3 4 5 6 7 7 chunks +35 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
robertphillips
https://codereview.chromium.org/21835004/diff/6001/src/effects/SkBlurMask.cpp File src/effects/SkBlurMask.cpp (right): https://codereview.chromium.org/21835004/diff/6001/src/effects/SkBlurMask.cpp#newcode502 src/effects/SkBlurMask.cpp:502: // Force high quality off for small radii (performance) ...
7 years, 4 months ago (2013-08-05 18:11:27 UTC) #1
reed1
lgtm
7 years, 4 months ago (2013-08-05 20:23:11 UTC) #2
bsalomon
https://codereview.chromium.org/21835004/diff/6001/include/effects/SkBlurDrawLooper.h File include/effects/SkBlurDrawLooper.h (right): https://codereview.chromium.org/21835004/diff/6001/include/effects/SkBlurDrawLooper.h#newcode38 include/effects/SkBlurDrawLooper.h:38: SkBlurDrawLooper(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, What's ...
7 years, 4 months ago (2013-08-05 20:45:37 UTC) #3
robertphillips
PTAL. This patch changes the method signatures (rather than add the "unused" parameter) to differentiate ...
7 years, 4 months ago (2013-08-06 17:13:46 UTC) #4
bsalomon
On 2013/08/06 17:13:46, robertphillips wrote: > PTAL. This patch changes the method signatures (rather than ...
7 years, 4 months ago (2013-08-06 17:29:38 UTC) #5
reed1
lgtm https://codereview.chromium.org/21835004/diff/16001/include/effects/SkBlurDrawLooper.h File include/effects/SkBlurDrawLooper.h (right): https://codereview.chromium.org/21835004/diff/16001/include/effects/SkBlurDrawLooper.h#newcode39 include/effects/SkBlurDrawLooper.h:39: uint32_t flags = kNone_BlurFlag); consider not having the ...
7 years, 4 months ago (2013-08-06 17:30:30 UTC) #6
robertphillips
This change will require rebaselines/supressions of the following 67 layout tests (at least on Linux): ...
7 years, 3 months ago (2013-08-27 16:09:46 UTC) #7
robertphillips
committed as r10936
7 years, 3 months ago (2013-08-27 16:15:01 UTC) #8
robertphillips
7 years, 3 months ago (2013-08-28 12:38:26 UTC) #9
Message was sent while issue was closed.
This did require rebaselining theverge baselines (because it got slower). Most
likely the new cutoff tolerances choose a more expensive path for some of the
blurs.

Powered by Google App Engine
This is Rietveld 408576698