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

Issue 1421493003: tunnel down texture-size-constraint to imagefilters (Closed)

Created:
5 years, 2 months ago by reed1
Modified:
5 years, 2 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

tunnel down texture-size-constraint to imagefilters BUG=skia: Committed: https://skia.googlesource.com/skia/+/c9b5f8b1522e72449d704d30ed6aee4fc6211ee8

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : re-export include/gpu to clients of core.gyp #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : use Context instead of Proxy -- much better #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Total comments: 14

Patch Set 9 : look ahead, and more (sometimes) the first scratch as actual scratch for Morphology #

Patch Set 10 : great jit optimization -- removed unneed params from blurmask utils" #

Total comments: 6

Patch Set 11 : #

Total comments: 4

Patch Set 12 : fix formating #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -42 lines) Patch
M include/core/SkImageFilter.h View 1 2 3 4 5 6 7 8 9 3 chunks +21 lines, -8 lines 0 comments Download
M include/gpu/GrTextureProvider.h View 1 2 3 4 5 6 7 2 chunks +26 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +25 lines, -6 lines 0 comments Download
M src/core/SkLocalMatrixImageFilter.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M src/effects/SkBlurImageFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M src/effects/SkComposeImageFilter.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M src/effects/SkGpuBlurUtils.h View 2 chunks +4 lines, -1 line 0 comments Download
M src/effects/SkGpuBlurUtils.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -4 lines 0 comments Download
M src/gpu/GrLayerHoister.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 2 3 4 5 6 5 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 61 (21 generated)
reed1
This should only affect a few filters that create their texture in response to applyFilter(), ...
5 years, 2 months ago (2015-10-21 14:41:18 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493003/1
5 years, 2 months ago (2015-10-21 14:41:31 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/3723) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on ...
5 years, 2 months ago (2015-10-21 14:42:20 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493003/20001
5 years, 2 months ago (2015-10-21 14:55:53 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mips-Debug-Android-Trybot/builds/3038)
5 years, 2 months ago (2015-10-21 14:56:55 UTC) #10
bsalomon
lgtm
5 years, 2 months ago (2015-10-21 15:01:35 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493003/40001
5 years, 2 months ago (2015-10-21 15:11:54 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mips-Debug-Android-Trybot/builds/3040)
5 years, 2 months ago (2015-10-21 15:12:41 UTC) #15
robertphillips
https://codereview.chromium.org/1421493003/diff/40001/include/core/SkMaskFilter.h File include/core/SkMaskFilter.h (right): https://codereview.chromium.org/1421493003/diff/40001/include/core/SkMaskFilter.h#newcode149 include/core/SkMaskFilter.h:149: bool canOverwriteSrc, How is this going to compile w/o ...
5 years, 2 months ago (2015-10-21 15:29:41 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493003/60001
5 years, 2 months ago (2015-10-21 17:02:18 UTC) #18
reed1
https://codereview.chromium.org/1421493003/diff/40001/include/core/SkMaskFilter.h File include/core/SkMaskFilter.h (right): https://codereview.chromium.org/1421493003/diff/40001/include/core/SkMaskFilter.h#newcode149 include/core/SkMaskFilter.h:149: bool canOverwriteSrc, On 2015/10/21 15:29:41, robertphillips wrote: > How ...
5 years, 2 months ago (2015-10-21 17:05:51 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493003/80001
5 years, 2 months ago (2015-10-21 17:37:30 UTC) #22
reed1
Stephen, does this look OK to you?
5 years, 2 months ago (2015-10-21 17:38:38 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-21 17:47:27 UTC) #25
robertphillips
lgtm
5 years, 2 months ago (2015-10-21 17:48:08 UTC) #26
Stephen White
I'd strongly request that we not do this. The problem with this approach is that: ...
5 years, 2 months ago (2015-10-21 17:57:44 UTC) #28
Stephen White
https://codereview.chromium.org/1421493003/diff/80001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1421493003/diff/80001/include/core/SkImageFilter.h#newcode102 include/core/SkImageFilter.h:102: Proxy(bool needExactTextureSize = false); As discussed, let's try adding ...
5 years, 2 months ago (2015-10-21 21:06:53 UTC) #29
reed1
Very good suggestion about moving flag to context -- I *think* its easy to know ...
5 years, 2 months ago (2015-10-21 21:08:02 UTC) #30
reed1
patch set #7 passes cc_unittests w/ the chrome CL (just tested locally) I know I ...
5 years, 2 months ago (2015-10-21 22:04:21 UTC) #31
reed1
Potentially I could land the infrastructure change in GrTextureProvider separately. It would reduce the size ...
5 years, 2 months ago (2015-10-21 22:05:48 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493003/120001
5 years, 2 months ago (2015-10-21 22:06:24 UTC) #34
Stephen White
On 2015/10/21 21:08:02, reed1 wrote: > Very good suggestion about moving flag to context -- ...
5 years, 2 months ago (2015-10-21 22:07:14 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-21 22:16:03 UTC) #37
Stephen White
https://codereview.chromium.org/1421493003/diff/120001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1421493003/diff/120001/include/core/SkImageFilter.h#newcode84 include/core/SkImageFilter.h:84: GrTextureProvider::SizeConstraint grSizeConstraint() const; Could we make this a static ...
5 years, 2 months ago (2015-10-21 22:25:09 UTC) #38
reed1
https://codereview.chromium.org/1421493003/diff/120001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1421493003/diff/120001/include/core/SkImageFilter.h#newcode84 include/core/SkImageFilter.h:84: GrTextureProvider::SizeConstraint grSizeConstraint() const; On 2015/10/21 22:25:09, Stephen White wrote: ...
5 years, 2 months ago (2015-10-22 14:24:52 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493003/140001
5 years, 2 months ago (2015-10-22 14:28:48 UTC) #41
reed1
Have plumbed in the relax option to filterImageGPU (good suggestion). Inspecting all call-site (so far), ...
5 years, 2 months ago (2015-10-22 14:30:33 UTC) #42
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-22 14:42:45 UTC) #44
robertphillips
https://codereview.chromium.org/1421493003/diff/140001/gyp/core.gyp File gyp/core.gyp (right): https://codereview.chromium.org/1421493003/diff/140001/gyp/core.gyp#newcode109 gyp/core.gyp:109: '../include/core', Do we still need this ? https://codereview.chromium.org/1421493003/diff/140001/include/core/SkMaskFilter.h File ...
5 years, 2 months ago (2015-10-22 14:43:36 UTC) #45
Stephen White
https://codereview.chromium.org/1421493003/diff/140001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1421493003/diff/140001/include/core/SkImageFilter.h#newcode61 include/core/SkImageFilter.h:61: Context(const Context& src, SizeConstraint constraint) This is a convenience ...
5 years, 2 months ago (2015-10-22 15:25:04 UTC) #46
reed1
https://codereview.chromium.org/1421493003/diff/140001/gyp/core.gyp File gyp/core.gyp (right): https://codereview.chromium.org/1421493003/diff/140001/gyp/core.gyp#newcode109 gyp/core.gyp:109: '../include/core', On 2015/10/22 14:43:36, robertphillips wrote: > Do we ...
5 years, 2 months ago (2015-10-22 16:24:55 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493003/180001
5 years, 2 months ago (2015-10-22 16:39:18 UTC) #49
reed1
ptal
5 years, 2 months ago (2015-10-22 18:27:39 UTC) #51
Stephen White
https://codereview.chromium.org/1421493003/diff/180001/gyp/core.gyp File gyp/core.gyp (right): https://codereview.chromium.org/1421493003/diff/180001/gyp/core.gyp#newcode110 gyp/core.gyp:110: '../include/gpu', Is this still necessary, now that it's GrTexture.h ...
5 years, 2 months ago (2015-10-22 18:44:16 UTC) #52
reed1
https://codereview.chromium.org/1421493003/diff/180001/gyp/core.gyp File gyp/core.gyp (right): https://codereview.chromium.org/1421493003/diff/180001/gyp/core.gyp#newcode110 gyp/core.gyp:110: '../include/gpu', On 2015/10/22 18:44:16, Stephen White wrote: > Is ...
5 years, 2 months ago (2015-10-22 19:36:32 UTC) #53
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493003/200001
5 years, 2 months ago (2015-10-22 19:36:52 UTC) #55
Stephen White
It would be great to have some benches for this, but given the, er, "in ...
5 years, 2 months ago (2015-10-22 19:53:14 UTC) #56
reed1
https://codereview.chromium.org/1421493003/diff/200001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1421493003/diff/200001/src/effects/SkBlurImageFilter.cpp#newcode222 src/effects/SkBlurImageFilter.cpp:222: GrTextureProvider::FromImageFilter(ctx.sizeConstraint()))); On 2015/10/22 19:53:14, Stephen White wrote: > Nit: ...
5 years, 2 months ago (2015-10-22 20:08:26 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493003/220001
5 years, 2 months ago (2015-10-22 20:08:45 UTC) #60
commit-bot: I haz the power
5 years, 2 months ago (2015-10-22 20:20:23 UTC) #61
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://skia.googlesource.com/skia/+/c9b5f8b1522e72449d704d30ed6aee4fc6211ee8

Powered by Google App Engine
This is Rietveld 408576698