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

Issue 18110012: Add canFilterMaskGPU & filterMaskGPU to SkMaskFilter (Closed)

Created:
7 years, 5 months ago by robertphillips
Modified:
7 years, 5 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Clean up the SkMaskFilter's GPU interface so we can talk about it without being embarrassed.

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 10

Patch Set 3 : Addressed code review issues #

Total comments: 6

Patch Set 4 : Upload forgotten patch #

Patch Set 5 : added CPU -> GPU bootstrapping to filterMaskGPU #

Patch Set 6 : removed cruft #

Total comments: 8

Patch Set 7 : Altered static filterMaskGPU to use a scratch texture #

Patch Set 8 : added comments & fixed nits #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -262 lines) Patch
M include/core/SkMaskFilter.h View 1 2 3 4 5 6 2 chunks +47 lines, -17 lines 0 comments Download
M src/core/SkMaskFilter.cpp View 1 2 3 4 5 6 7 2 chunks +67 lines, -2 lines 1 comment Download
M src/device/xps/SkXPSDevice.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -15 lines 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 5 6 7 6 chunks +135 lines, -25 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 9 chunks +113 lines, -186 lines 0 comments Download
M tests/BlurTest.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -12 lines 0 comments Download
M tools/PictureRenderer.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M tools/PictureRenderer.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
robertphillips
https://codereview.chromium.org/18110012/diff/2001/include/core/SkMaskFilter.h File include/core/SkMaskFilter.h (right): https://codereview.chromium.org/18110012/diff/2001/include/core/SkMaskFilter.h#newcode73 include/core/SkMaskFilter.h:73: The next two calls mimic the ImageFilter. What do ...
7 years, 5 months ago (2013-06-28 17:46:12 UTC) #1
robertphillips
Also, I thought this was big enough as is so I will move the Gaussian ...
7 years, 5 months ago (2013-06-28 17:58:01 UTC) #2
bsalomon
Overall looks a like a nice step towards having a clearer story for how we ...
7 years, 5 months ago (2013-06-28 18:32:42 UTC) #3
robertphillips
This patch changes the signatures of the filterMaskGPU functions. https://codereview.chromium.org/18110012/diff/2001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/18110012/diff/2001/src/gpu/SkGpuDevice.cpp#newcode792 src/gpu/SkGpuDevice.cpp:792: ...
7 years, 5 months ago (2013-07-01 19:53:57 UTC) #4
bsalomon
https://codereview.chromium.org/18110012/diff/7001/include/core/SkMaskFilter.h File include/core/SkMaskFilter.h (right): https://codereview.chromium.org/18110012/diff/7001/include/core/SkMaskFilter.h#newcode97 include/core/SkMaskFilter.h:97: * Note: the texture backing 'src' may be recycled ...
7 years, 5 months ago (2013-07-01 20:01:57 UTC) #5
robertphillips
https://codereview.chromium.org/18110012/diff/7001/include/core/SkMaskFilter.h File include/core/SkMaskFilter.h (right): https://codereview.chromium.org/18110012/diff/7001/include/core/SkMaskFilter.h#newcode97 include/core/SkMaskFilter.h:97: * Note: the texture backing 'src' may be recycled ...
7 years, 5 months ago (2013-07-02 13:11:58 UTC) #6
robertphillips
Patch 4 adds alters the interface to the static filterMaskGPU entry point and adds the ...
7 years, 5 months ago (2013-07-02 19:52:09 UTC) #7
Stephen White
https://codereview.chromium.org/18110012/diff/36001/src/effects/SkBlurMaskFilter.cpp File src/effects/SkBlurMaskFilter.cpp (right): https://codereview.chromium.org/18110012/diff/36001/src/effects/SkBlurMaskFilter.cpp#newcode388 src/effects/SkBlurMaskFilter.cpp:388: srcRect.inset(SkFloatToScalar(-sigma3), SkFloatToScalar(-sigma3)); Nit: could useSkRect::outset() here. https://codereview.chromium.org/18110012/diff/36001/src/effects/SkBlurMaskFilter.cpp#newcode389 src/effects/SkBlurMaskFilter.cpp:389: clipRect.inset(SkFloatToScalar(-sigma3), ...
7 years, 5 months ago (2013-07-02 20:02:05 UTC) #8
Stephen White
https://codereview.chromium.org/18110012/diff/36001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/18110012/diff/36001/src/gpu/SkGpuDevice.cpp#newcode849 src/gpu/SkGpuDevice.cpp:849: // We actually only need A8, but it often ...
7 years, 5 months ago (2013-07-02 20:02:52 UTC) #9
robertphillips
This version updates the static filterMaskGPU to use a scratch texture and addresses the other ...
7 years, 5 months ago (2013-07-03 12:51:16 UTC) #10
bsalomon
On 2013/07/03 12:51:16, robertphillips wrote: > This version updates the static filterMaskGPU to use a ...
7 years, 5 months ago (2013-07-03 13:21:16 UTC) #11
Stephen White
LGTM https://codereview.chromium.org/18110012/diff/46002/src/core/SkMaskFilter.cpp File src/core/SkMaskFilter.cpp (right): https://codereview.chromium.org/18110012/diff/46002/src/core/SkMaskFilter.cpp#newcode327 src/core/SkMaskFilter.cpp:327: dst->unref(); FYI, one of the reasons I changed ...
7 years, 5 months ago (2013-07-03 14:32:56 UTC) #12
robertphillips
7 years, 5 months ago (2013-07-03 15:34:51 UTC) #13
Message was sent while issue was closed.
committed as r9888

Powered by Google App Engine
This is Rietveld 408576698