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

Issue 1861643003: Upgrade SkSpecialImage to have getTextureRef & getROPixels entry points (Closed)

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

Description

Upgrade SkSpecialImage to have getTextureRef & getROPixels entry points This more closely aligns the SkSpecialImage API with the SkImage API. In doing so it allows the image filters to handle SkImages that can sneak through while remaining encoded (e.g., if an input filter just returns a wrapped version of the source SkImage) GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1861643003 Committed: https://skia.googlesource.com/skia/+/646125114b42b24e5ada3c9f8fac53a85f9ad2a0

Patch Set 1 #

Patch Set 2 : Fix spacing #

Patch Set 3 : Fix no GPU build #

Patch Set 4 : Really fix no-GPU build #

Total comments: 2

Patch Set 5 : Cleave even more closely to SkImage API #

Patch Set 6 : Fix no-GPU build #

Total comments: 3

Patch Set 7 : Address code review comments #

Total comments: 4

Patch Set 8 : Address code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -135 lines) Patch
M include/core/SkPixelRef.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkSpecialImage.h View 1 2 3 4 2 chunks +14 lines, -13 lines 0 comments Download
M src/core/SkSpecialImage.cpp View 1 2 3 4 5 6 7 12 chunks +84 lines, -51 lines 0 comments Download
M src/effects/SkBlurImageFilter.cpp View 1 2 3 4 5 6 3 chunks +14 lines, -12 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 1 2 3 4 5 chunks +18 lines, -16 lines 0 comments Download
M src/gpu/GrLayerHoister.cpp View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 2 3 4 5 6 4 chunks +7 lines, -7 lines 0 comments Download
M tests/SpecialImageTest.cpp View 1 2 3 4 5 6 9 chunks +30 lines, -20 lines 0 comments Download
M tests/TestingSpecialImageAccess.h View 1 2 3 4 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 49 (24 generated)
robertphillips
4 years, 8 months ago (2016-04-05 17:03:09 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861643003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861643003/20001
4 years, 8 months ago (2016-04-05 22:15:45 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/7600)
4 years, 8 months ago (2016-04-05 22:20:35 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861643003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861643003/40001
4 years, 8 months ago (2016-04-06 12:07:35 UTC) #10
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/7621)
4 years, 8 months ago (2016-04-06 12:09:05 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861643003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861643003/60001
4 years, 8 months ago (2016-04-06 14:28:23 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot/builds/2688)
4 years, 8 months ago (2016-04-06 14:43:53 UTC) #16
Stephen White
https://codereview.chromium.org/1861643003/diff/60001/src/effects/SkMorphologyImageFilter.cpp File src/effects/SkMorphologyImageFilter.cpp (right): https://codereview.chromium.org/1861643003/diff/60001/src/effects/SkMorphologyImageFilter.cpp#newcode555 src/effects/SkMorphologyImageFilter.cpp:555: if (!inputTexture) { I find this API somewhat error-prone, ...
4 years, 8 months ago (2016-04-06 16:21:24 UTC) #18
robertphillips
https://codereview.chromium.org/1861643003/diff/60001/src/effects/SkMorphologyImageFilter.cpp File src/effects/SkMorphologyImageFilter.cpp (right): https://codereview.chromium.org/1861643003/diff/60001/src/effects/SkMorphologyImageFilter.cpp#newcode555 src/effects/SkMorphologyImageFilter.cpp:555: if (!inputTexture) { I have updated the SkSpecialImage API ...
4 years, 8 months ago (2016-04-06 17:19:53 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/1861643003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861643003/80001
4 years, 8 months ago (2016-04-06 17:42:36 UTC) #21
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/7634)
4 years, 8 months ago (2016-04-06 17:44:07 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861643003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861643003/100001
4 years, 8 months ago (2016-04-06 18:11:32 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-06 19:05:48 UTC) #27
reed1
fine with new isTextureBacked addition, makes it clearer. lgtm
4 years, 8 months ago (2016-04-08 15:11:06 UTC) #28
Stephen White
LGTM w/nit https://codereview.chromium.org/1861643003/diff/100001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1861643003/diff/100001/src/effects/SkBlurImageFilter.cpp#newcode101 src/effects/SkBlurImageFilter.cpp:101: if (!inputTexture) { Could you change this ...
4 years, 8 months ago (2016-04-08 15:14:19 UTC) #29
robertphillips
https://codereview.chromium.org/1861643003/diff/100001/src/effects/SkBlurImageFilter.cpp File src/effects/SkBlurImageFilter.cpp (right): https://codereview.chromium.org/1861643003/diff/100001/src/effects/SkBlurImageFilter.cpp#newcode101 src/effects/SkBlurImageFilter.cpp:101: if (!inputTexture) { On 2016/04/08 15:14:19, Stephen White wrote: ...
4 years, 8 months ago (2016-04-08 18:07:50 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/1861643003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861643003/120001
4 years, 8 months ago (2016-04-08 18:08:08 UTC) #32
Stephen White
some nits I missed. https://codereview.chromium.org/1861643003/diff/120001/src/core/SkSpecialImage.cpp File src/core/SkSpecialImage.cpp (right): https://codereview.chromium.org/1861643003/diff/120001/src/core/SkSpecialImage.cpp#newcode116 src/core/SkSpecialImage.cpp:116: return nullptr; Nit: return false? ...
4 years, 8 months ago (2016-04-08 18:23:20 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-08 18:26:59 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861643003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861643003/120001
4 years, 8 months ago (2016-04-08 18:31:41 UTC) #38
robertphillips
https://codereview.chromium.org/1861643003/diff/120001/src/core/SkSpecialImage.cpp File src/core/SkSpecialImage.cpp (right): https://codereview.chromium.org/1861643003/diff/120001/src/core/SkSpecialImage.cpp#newcode116 src/core/SkSpecialImage.cpp:116: return nullptr; On 2016/04/08 18:23:20, Stephen White wrote: > ...
4 years, 8 months ago (2016-04-08 18:57:50 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861643003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861643003/140001
4 years, 8 months ago (2016-04-08 18:58:02 UTC) #42
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-08 19:08:37 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861643003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861643003/140001
4 years, 8 months ago (2016-04-08 19:09:47 UTC) #47
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 19:10:47 UTC) #49
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/646125114b42b24e5ada3c9f8fac53a85f9ad2a0

Powered by Google App Engine
This is Rietveld 408576698