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

Issue 2222083004: Create blurred RRect mask on GPU (rather than uploading it) (Closed)

Created:
4 years, 4 months ago by robertphillips
Modified:
4 years, 4 months ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Create blurred RRect mask on GPU (rather than uploading it) This CL doesn't try to resolve any of the larger issues. It just moves the computation of the blurred RRect to the gpu and sets up to start using vertex attributes for a nine patch draw (i.e., returning the texture coordinates) All blurred rrects using the "analytic" path will change slightly with this CL. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2222083004 Committed: https://skia.googlesource.com/skia/+/75ccdc77a70ec2083141bf9ba98eb2f01ece2479 Committed: https://skia.googlesource.com/skia/+/94b5c5a41160e0f55e267fc3d830df65736fac50 Committed: https://skia.googlesource.com/skia/+/f5a83e818483ef910ffd107df8f98b5ee24671f5

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : clean up #

Patch Set 4 : More cleanup #

Patch Set 5 : Add clear #

Patch Set 6 : Fix No GPU build #

Total comments: 2

Patch Set 7 : Fix memory leak #

Patch Set 8 : SkColor -> GrColor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -62 lines) Patch
M include/core/SkMaskFilter.h View 2 chunks +2 lines, -1 line 0 comments Download
M include/effects/SkBlurMaskFilter.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/core/SkMaskFilter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 5 6 7 11 chunks +119 lines, -54 lines 0 comments Download
M src/effects/SkGpuBlurUtils.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/effects/SkGpuBlurUtils.cpp View 1 3 chunks +4 lines, -3 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice_drawTexture.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/BlurTest.cpp View 1 2 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (24 generated)
robertphillips
4 years, 4 months ago (2016-08-09 18:53:52 UTC) #5
bsalomon
lgtm
4 years, 4 months ago (2016-08-09 20:32:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2222083004/60001
4 years, 4 months ago (2016-08-10 12:02:10 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/75ccdc77a70ec2083141bf9ba98eb2f01ece2479
4 years, 4 months ago (2016-08-10 12:33:17 UTC) #14
robertphillips
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2236493002/ by robertphillips@google.com. ...
4 years, 4 months ago (2016-08-10 13:15:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2222083004/80001
4 years, 4 months ago (2016-08-10 13:47:31 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/94b5c5a41160e0f55e267fc3d830df65736fac50
4 years, 4 months ago (2016-08-10 14:14:59 UTC) #21
robertphillips
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2232953002/ by robertphillips@google.com. ...
4 years, 4 months ago (2016-08-10 15:40:24 UTC) #22
robertphillips
Third times a charm
4 years, 4 months ago (2016-08-10 17:23:16 UTC) #30
bsalomon
I think the clear takes a GrColor not a SkColor. Otherwise lgtm https://codereview.chromium.org/2222083004/diff/100001/src/effects/SkBlurMaskFilter.cpp File src/effects/SkBlurMaskFilter.cpp ...
4 years, 4 months ago (2016-08-10 17:43:19 UTC) #31
robertphillips
https://codereview.chromium.org/2222083004/diff/100001/src/effects/SkBlurMaskFilter.cpp File src/effects/SkBlurMaskFilter.cpp (right): https://codereview.chromium.org/2222083004/diff/100001/src/effects/SkBlurMaskFilter.cpp#newcode1024 src/effects/SkBlurMaskFilter.cpp:1024: dc->clear(nullptr, SK_ColorTRANSPARENT, true); On 2016/08/10 17:43:19, bsalomon wrote: > ...
4 years, 4 months ago (2016-08-10 18:31:45 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2222083004/140001
4 years, 4 months ago (2016-08-10 18:31:56 UTC) #35
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 19:00:13 UTC) #37
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/f5a83e818483ef910ffd107df8f98b5ee24671f5

Powered by Google App Engine
This is Rietveld 408576698