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

Issue 1785643003: Switch SkBlurImageFilter over to new onFilterImage interface (Closed)

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

Description

Switch SkBlurImageFilter over to new onFilterImage interface This CL relies on: https://codereview.chromium.org/1787883002/ (Add SkSpecialImage::extractSubset & NewFromPixmap) https://codereview.chromium.org/1808743003/ (Allow SkGpuDevice::drawSprite to handle subset SkBitmaps) https://codereview.chromium.org/1813813002/ (Add SkSpecialImage::makeTextureImage entry point) GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1785643003 Committed: https://skia.googlesource.com/skia/+/3c935bc87020bfd19a08922f7394db3a801d168b Committed: https://skia.googlesource.com/skia/+/1579e3c376a9ee8c694a64f9c87457cea13ba442

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : update #

Patch Set 4 : Clean up #

Patch Set 5 : update to ToT #

Patch Set 6 : update to ToT (again) #

Total comments: 2

Patch Set 7 : update to ToT #

Patch Set 8 : force gpu path in drawBitmapAsSprite for SkGpuDevice #

Patch Set 9 : Fix indent #

Total comments: 14

Patch Set 10 : Clean up #

Patch Set 11 : Use SkBitmap #

Total comments: 7

Patch Set 12 : Clean up #

Total comments: 4

Patch Set 13 : Switch to using tryAllocPixels #

Patch Set 14 : Rename method (and update to ToT) #

Patch Set 15 : add cast #

Patch Set 16 : Fix discardable memory bot #

Patch Set 17 : update to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -131 lines) Patch
M gyp/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -5 lines 0 comments Download
M include/effects/SkBlurImageFilter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -5 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -6 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -3 lines 0 comments Download
M src/core/SkSpecialImage.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -1 line 0 comments Download
M src/effects/SkBlurImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +100 lines, -110 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (21 generated)
Stephen White
It's great that you're tackling merging the two processing paths at the same time. I'm ...
4 years, 9 months ago (2016-03-17 17:13:22 UTC) #6
robertphillips
IIUC, when SkBlurImageFilter::canFilterImageGPU used to return true, SkGpuDevice::canHandleImageFilter would also return true and SkCanvas::internalDrawDevice and ...
4 years, 9 months ago (2016-03-21 16:44:32 UTC) #7
robertphillips
+reed for the virtualization of drawBitmapAsSprite
4 years, 9 months ago (2016-03-21 16:45:17 UTC) #9
Stephen White
https://codereview.chromium.org/1785643003/diff/150001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1785643003/diff/150001/src/effects/SkBlurImageFilter.cpp#newcode98 src/effects/SkBlurImageFilter.cpp:98: if (0 == sigma.x() && 0 == sigma.y()) { ...
4 years, 9 months ago (2016-03-21 18:11:28 UTC) #10
Stephen White
On 2016/03/21 16:44:32, robertphillips wrote: > IIUC, when SkBlurImageFilter::canFilterImageGPU used to return true, > SkGpuDevice::canHandleImageFilter ...
4 years, 9 months ago (2016-03-21 18:26:31 UTC) #11
Stephen White
On 2016/03/21 18:26:31, Stephen White wrote: > On 2016/03/21 16:44:32, robertphillips wrote: > > IIUC, ...
4 years, 9 months ago (2016-03-21 18:42:13 UTC) #12
reed1
https://codereview.chromium.org/1785643003/diff/150001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/1785643003/diff/150001/src/gpu/SkGpuDevice.cpp#newcode223 src/gpu/SkGpuDevice.cpp:223: void SkGpuDevice::drawBitmapAsSprite(const SkDraw& draw, const SkBitmap& bitmap, // Want ...
4 years, 9 months ago (2016-03-21 20:41:35 UTC) #13
robertphillips
On 2016/03/21 18:42:13, Stephen White wrote: > On 2016/03/21 18:26:31, Stephen White wrote: > > ...
4 years, 9 months ago (2016-03-21 21:26:35 UTC) #14
robertphillips
https://codereview.chromium.org/1785643003/diff/150001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1785643003/diff/150001/src/effects/SkBlurImageFilter.cpp#newcode98 src/effects/SkBlurImageFilter.cpp:98: if (0 == sigma.x() && 0 == sigma.y()) { ...
4 years, 9 months ago (2016-03-21 21:32:40 UTC) #15
Stephen White
https://codereview.chromium.org/1785643003/diff/150001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1785643003/diff/150001/src/effects/SkBlurImageFilter.cpp#newcode219 src/effects/SkBlurImageFilter.cpp:219: sk_free(addr); On 2016/03/21 21:32:40, robertphillips wrote: > On 2016/03/21 ...
4 years, 9 months ago (2016-03-21 21:49:46 UTC) #16
robertphillips
PTAL - this now uses SkBitmap for the destination raster pixels
4 years, 9 months ago (2016-03-22 18:02:48 UTC) #17
Stephen White
https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp#newcode217 src/effects/SkBlurImageFilter.cpp:217: dst).release(); Much better, thanks. I'm still a little concerned ...
4 years, 9 months ago (2016-03-22 18:35:53 UTC) #18
robertphillips
https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp#newcode217 src/effects/SkBlurImageFilter.cpp:217: dst).release(); Yep - you get: 'return': cannot convert from ...
4 years, 9 months ago (2016-03-22 18:44:33 UTC) #19
Stephen White
https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp#newcode162 src/effects/SkBlurImageFilter.cpp:162: SkAutoPixmapStorage tmp; Could we keep the temp buffer as ...
4 years, 9 months ago (2016-03-22 18:44:46 UTC) #20
Stephen White
https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp#newcode180 src/effects/SkBlurImageFilter.cpp:180: * Nit: is this indentation intentional?
4 years, 9 months ago (2016-03-22 18:47:02 UTC) #21
Stephen White
https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp#newcode217 src/effects/SkBlurImageFilter.cpp:217: dst).release(); On 2016/03/22 18:44:32, robertphillips wrote: > Yep - ...
4 years, 9 months ago (2016-03-22 18:48:03 UTC) #22
robertphillips
https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1785643003/diff/190001/src/effects/SkBlurImageFilter.cpp#newcode162 src/effects/SkBlurImageFilter.cpp:162: SkAutoPixmapStorage tmp; On 2016/03/22 18:44:46, Stephen White wrote: > ...
4 years, 9 months ago (2016-03-22 19:00:27 UTC) #23
Stephen White
https://codereview.chromium.org/1785643003/diff/210001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (left): https://codereview.chromium.org/1785643003/diff/210001/src/effects/SkBlurImageFilter.cpp#oldcode118 src/effects/SkBlurImageFilter.cpp:118: SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(dstBounds.width(), dstBounds.height())); BTW, there's actually a reason we ...
4 years, 9 months ago (2016-03-22 19:29:50 UTC) #24
robertphillips
https://codereview.chromium.org/1785643003/diff/210001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (left): https://codereview.chromium.org/1785643003/diff/210001/src/effects/SkBlurImageFilter.cpp#oldcode118 src/effects/SkBlurImageFilter.cpp:118: SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(dstBounds.width(), dstBounds.height())); On 2016/03/22 19:29:49, Stephen White wrote: ...
4 years, 9 months ago (2016-03-22 19:40:50 UTC) #25
Stephen White
On 2016/03/22 19:40:50, robertphillips wrote: > https://codereview.chromium.org/1785643003/diff/210001/src/effects/SkBlurImageFilter.cpp > File src/effects/SkBlurImageFilter.cpp (left): > > https://codereview.chromium.org/1785643003/diff/210001/src/effects/SkBlurImageFilter.cpp#oldcode118 > ...
4 years, 9 months ago (2016-03-22 19:53:50 UTC) #26
robertphillips
On 2016/03/22 19:53:50, Stephen White wrote: > On 2016/03/22 19:40:50, robertphillips wrote: > > > ...
4 years, 9 months ago (2016-03-22 20:03:05 UTC) #27
Stephen White
filters LGTM; leaving API & device for reed@
4 years, 9 months ago (2016-03-22 20:04:28 UTC) #28
robertphillips
ping - Mike
4 years, 9 months ago (2016-03-23 12:30:56 UTC) #29
reed1
can this method be called something with imagefilter in it? Does it *always* have an ...
4 years, 9 months ago (2016-03-23 12:50:05 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785643003/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785643003/250001
4 years, 9 months ago (2016-03-23 18:30:47 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/7386)
4 years, 9 months ago (2016-03-23 18:34:37 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785643003/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785643003/270001
4 years, 9 months ago (2016-03-23 18:42:43 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-23 18:54:14 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785643003/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785643003/270001
4 years, 9 months ago (2016-03-23 19:49:52 UTC) #41
commit-bot: I haz the power
Committed patchset #15 (id:270001) as https://skia.googlesource.com/skia/+/3c935bc87020bfd19a08922f7394db3a801d168b
4 years, 9 months ago (2016-03-23 19:50:52 UTC) #43
robertphillips
A revert of this CL (patchset #15 id:270001) has been created in https://codereview.chromium.org/1831603002/ by robertphillips@google.com. ...
4 years, 9 months ago (2016-03-23 21:03:30 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785643003/290001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785643003/290001
4 years, 9 months ago (2016-03-23 23:30:08 UTC) #47
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-23 23:44:03 UTC) #49
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785643003/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785643003/310001
4 years, 9 months ago (2016-03-24 11:45:48 UTC) #51
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-24 11:56:40 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785643003/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785643003/310001
4 years, 9 months ago (2016-03-24 12:00:19 UTC) #56
commit-bot: I haz the power
4 years, 9 months ago (2016-03-24 12:01:28 UTC) #58
Message was sent while issue was closed.
Committed patchset #17 (id:310001) as
https://skia.googlesource.com/skia/+/1579e3c376a9ee8c694a64f9c87457cea13ba442

Powered by Google App Engine
This is Rietveld 408576698