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

Issue 2359443003: Fix some GPU image filter code to preserve precision and color space (Closed)

Created:
4 years, 3 months ago by Brian Osman
Modified:
4 years, 3 months ago
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix some GPU image filter code to preserve precision and color space On the pure-GPU path, we just have an SkSpecialImage (that's definitely texture backed), and we need a renderable config for the draw context we make. Added a helper function to pick - this is basically the high precision analog of what we were doing before (always using 8888). The assert that I added catches many other problems in image filter code, but those fixes are coming in subsequent CLs. 12 GMs render correctly (or more correctly) in gpusrgb and gpuf16 configs. In most cases, they were drawing previously nothing. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2359443003 Committed: https://skia.googlesource.com/skia/+/2695eaa41fbd208dcee9e134e180c6609856f0ac

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -15 lines) Patch
M src/core/SkImageFilter.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M src/effects/SkXfermodeImageFilter.cpp View 2 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/GrDrawingManager.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 chunk +13 lines, -0 lines 0 comments Download
M src/gpu/SkGrPriv.h View 1 chunk +5 lines, -0 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 15 (9 generated)
Brian Osman
4 years, 3 months ago (2016-09-20 20:57:42 UTC) #4
bsalomon
lgtm
4 years, 3 months ago (2016-09-21 13:28:13 UTC) #9
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/2359443003/1
4 years, 3 months ago (2016-09-21 13:43:51 UTC) #11
robertphillips
lgtm https://codereview.chromium.org/2359443003/diff/1/src/gpu/SkGrPriv.h File src/gpu/SkGrPriv.h (right): https://codereview.chromium.org/2359443003/diff/1/src/gpu/SkGrPriv.h#newcode110 src/gpu/SkGrPriv.h:110: we want to preserve the color space of ...
4 years, 3 months ago (2016-09-21 13:44:10 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/2695eaa41fbd208dcee9e134e180c6609856f0ac
4 years, 3 months ago (2016-09-21 13:45:12 UTC) #14
Brian Osman
4 years, 3 months ago (2016-09-21 13:47:35 UTC) #15
Message was sent while issue was closed.
On 2016/09/21 13:44:10, robertphillips wrote:
> lgtm
> 
> https://codereview.chromium.org/2359443003/diff/1/src/gpu/SkGrPriv.h
> File src/gpu/SkGrPriv.h (right):
> 
>
https://codereview.chromium.org/2359443003/diff/1/src/gpu/SkGrPriv.h#newcode110
> src/gpu/SkGrPriv.h:110: we want to preserve the color space of that source.
This
> picks an appropriate format to use. */
> Should this take a const SkColorSpace* ?

Yeah. I'll fold that fix into the dependent change.

Powered by Google App Engine
This is Rietveld 408576698