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

Issue 48623006: Add ability to ninepatch blurred rounded rectangle (Closed)

Created:
7 years, 1 month ago by scroggo
Modified:
7 years, 1 month ago
Reviewers:
robertphillips, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add ability to ninepatch blurred rounded rectangle Speed up drawing large blurry round rectangles by converting them to nine patches. SkDraw: Add drawRRect. SkBitmapDevice: Call SkDraw::drawRRect instead of converting SkRRect to an SkPath. SkMaskFilter/SkBlurMaskFilter: Create a nine patch of a blurred round rect and draw it instead of drawing the entire thing. SkPDFDevice: Override drawRRect to perform the old behavior in SkBitmapDevice::drawRect. Depends on https://codereview.chromium.org/52703003 Tests are in https://codereview.chromium.org/52793005 BUG=https://b.corp.google.com/issue?id=11174385 R=reed@google.com, robertphillips@google.com Committed: https://code.google.com/p/skia/source/detail?r=12198

Patch Set 1 : #

Total comments: 19

Patch Set 2 : Respond to comments. #

Total comments: 9

Patch Set 3 : Respond to reed's comments #

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : Address nit (static function name) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -9 lines) Patch
M include/core/SkDraw.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M include/core/SkMaskFilter.h View 1 3 chunks +15 lines, -0 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M src/core/SkBitmapDevice.cpp View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M src/core/SkDraw.cpp View 1 2 3 2 chunks +46 lines, -0 lines 0 comments Download
M src/core/SkMaskFilter.cpp View 1 3 chunks +27 lines, -0 lines 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 5 chunks +151 lines, -4 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
scroggo
On the SKP giving us problems, I see the following times, where old is without ...
7 years, 1 month ago (2013-10-30 22:36:19 UTC) #1
scroggo
https://codereview.chromium.org/48623006/diff/40001/src/effects/SkBlurMaskFilter.cpp File src/effects/SkBlurMaskFilter.cpp (right): https://codereview.chromium.org/48623006/diff/40001/src/effects/SkBlurMaskFilter.cpp#newcode183 src/effects/SkBlurMaskFilter.cpp:183: SkCanvas* canvas = SkNEW_ARGS(SkCanvas, (bitmap)); In trying to share ...
7 years, 1 month ago (2013-10-30 22:51:31 UTC) #2
scroggo
7 years, 1 month ago (2013-10-30 23:03:32 UTC) #3
robertphillips
lgtm. Are there enough tests/gms? https://codereview.chromium.org/48623006/diff/40001/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/48623006/diff/40001/src/core/SkDraw.cpp#newcode1042 src/core/SkDraw.cpp:1042: if (paint.getPathEffect() will this ...
7 years, 1 month ago (2013-10-31 00:24:58 UTC) #4
robertphillips
https://codereview.chromium.org/48623006/diff/40001/src/effects/SkBlurMaskFilter.cpp File src/effects/SkBlurMaskFilter.cpp (right): https://codereview.chromium.org/48623006/diff/40001/src/effects/SkBlurMaskFilter.cpp#newcode277 src/effects/SkBlurMaskFilter.cpp:277: Does this behave correctly if the RR is 100x100 ...
7 years, 1 month ago (2013-10-31 13:30:30 UTC) #5
scroggo
New patch fixes the case robert pointed out in patch set 1. PTAL. > Are ...
7 years, 1 month ago (2013-11-01 21:45:46 UTC) #6
reed1
what would happen if we didn't make the changes to PDFDevice? https://codereview.chromium.org/48623006/diff/150001/include/core/SkDraw.h File include/core/SkDraw.h (right): ...
7 years, 1 month ago (2013-11-04 17:46:51 UTC) #7
scroggo
https://codereview.chromium.org/48623006/diff/150001/include/core/SkDraw.h File include/core/SkDraw.h (right): https://codereview.chromium.org/48623006/diff/150001/include/core/SkDraw.h#newcode27 include/core/SkDraw.h:27: struct SkRRect; On 2013/11/04 17:46:52, reed1 wrote: > class ...
7 years, 1 month ago (2013-11-04 19:52:53 UTC) #8
reed1
On 2013/11/04 19:52:53, scroggo wrote: > https://codereview.chromium.org/48623006/diff/150001/include/core/SkDraw.h > File include/core/SkDraw.h (right): > > https://codereview.chromium.org/48623006/diff/150001/include/core/SkDraw.h#newcode27 > ...
7 years, 1 month ago (2013-11-04 20:03:48 UTC) #9
reed1
lgtm
7 years, 1 month ago (2013-11-04 20:05:05 UTC) #10
scroggo
On 2013/11/04 20:03:48, reed1 wrote: > On 2013/11/04 19:52:53, scroggo wrote: > > https://codereview.chromium.org/48623006/diff/150001/include/core/SkDraw.h > ...
7 years, 1 month ago (2013-11-05 16:33:58 UTC) #11
robertphillips
lgtm + nit https://codereview.chromium.org/48623006/diff/350001/src/effects/SkBlurMaskFilter.cpp File src/effects/SkBlurMaskFilter.cpp (right): https://codereview.chromium.org/48623006/diff/350001/src/effects/SkBlurMaskFilter.cpp#newcode202 src/effects/SkBlurMaskFilter.cpp:202: draw_rects_into_mask?
7 years, 1 month ago (2013-11-05 17:26:22 UTC) #12
scroggo
https://codereview.chromium.org/48623006/diff/350001/src/effects/SkBlurMaskFilter.cpp File src/effects/SkBlurMaskFilter.cpp (right): https://codereview.chromium.org/48623006/diff/350001/src/effects/SkBlurMaskFilter.cpp#newcode202 src/effects/SkBlurMaskFilter.cpp:202: On 2013/11/05 17:26:22, robertphillips wrote: > draw_rects_into_mask? Done.
7 years, 1 month ago (2013-11-05 21:15:06 UTC) #13
scroggo
On 2013/11/05 21:15:06, scroggo wrote: > https://codereview.chromium.org/48623006/diff/350001/src/effects/SkBlurMaskFilter.cpp > File src/effects/SkBlurMaskFilter.cpp (right): > > https://codereview.chromium.org/48623006/diff/350001/src/effects/SkBlurMaskFilter.cpp#newcode202 > ...
7 years, 1 month ago (2013-11-08 15:01:25 UTC) #14
scroggo
7 years, 1 month ago (2013-11-08 18:03:00 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 manually as r12198 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698