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

Issue 1889453002: Tweak distance field path renderer behavior in gamma-correct mode (Closed)

Created:
4 years, 8 months ago by Brian Osman
Modified:
4 years, 8 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

Tweak distance field path renderer behavior in gamma-correct mode to match recent changes to text rendering. Uses linear coverage falloff. Produces results that are perceptually more similar to L32 (raster and gpu). Smoothstep + sRGB was too soft. Plumb the gamma-correctness via DrawPathArgs, which also paves the way for other path rendering implementations to easily make decisions about rendering technique based on that flag. Fix a few typos and formatting issues from my most recent change. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1889453002 Committed: https://skia.googlesource.com/skia/+/0e3c55431b463b5575983c0c875909e08a3562bf

Patch Set 1 #

Total comments: 2

Patch Set 2 : Cleaner solution #

Total comments: 3

Patch Set 3 : Rebased, plumbed gamma-correctness via DrawPathArgs, fixed typos from most recent change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -11 lines) Patch
M gm/surface.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M include/core/SkSurfaceProps.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrPaint.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M src/gpu/GrDrawContext.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M src/gpu/GrPathRenderer.h View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M src/gpu/batches/GrAADistanceFieldPathRenderer.cpp View 1 2 8 chunks +14 lines, -5 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldGeoProc.cpp View 1 2 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 27 (12 generated)
Brian Osman
4 years, 8 months ago (2016-04-13 13:41:28 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889453002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1889453002/1
4 years, 8 months ago (2016-04-13 13:41:44 UTC) #5
jvanverth1
https://codereview.chromium.org/1889453002/diff/1/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (right): https://codereview.chromium.org/1889453002/diff/1/src/gpu/GrDrawTarget.h#newcode177 src/gpu/GrDrawTarget.h:177: friend class GrAADistanceFieldPathRenderer; // for fRenderTarget (to query sRGB) ...
4 years, 8 months ago (2016-04-13 13:45:39 UTC) #6
Brian Osman
https://codereview.chromium.org/1889453002/diff/1/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (right): https://codereview.chromium.org/1889453002/diff/1/src/gpu/GrDrawTarget.h#newcode177 src/gpu/GrDrawTarget.h:177: friend class GrAADistanceFieldPathRenderer; // for fRenderTarget (to query sRGB) ...
4 years, 8 months ago (2016-04-13 13:48:44 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-13 13:51:19 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889453002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1889453002/20001
4 years, 8 months ago (2016-04-13 13:52:54 UTC) #11
Brian Osman
https://codereview.chromium.org/1889453002/diff/20001/src/gpu/effects/GrDistanceFieldGeoProc.cpp File src/gpu/effects/GrDistanceFieldGeoProc.cpp (right): https://codereview.chromium.org/1889453002/diff/20001/src/gpu/effects/GrDistanceFieldGeoProc.cpp#newcode406 src/gpu/effects/GrDistanceFieldGeoProc.cpp:406: // doing gamma-correct rendering (to an sRGB or F16 ...
4 years, 8 months ago (2016-04-13 13:55:18 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-13 14:01:56 UTC) #14
bsalomon
https://codereview.chromium.org/1889453002/diff/20001/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (right): https://codereview.chromium.org/1889453002/diff/20001/src/gpu/GrDrawTarget.h#newcode111 src/gpu/GrDrawTarget.h:111: GrPixelConfig config() const { return fRenderTarget->config(); } +Rob
4 years, 8 months ago (2016-04-13 14:36:23 UTC) #16
robertphillips
https://codereview.chromium.org/1889453002/diff/20001/src/gpu/GrDrawTarget.h File src/gpu/GrDrawTarget.h (right): https://codereview.chromium.org/1889453002/diff/20001/src/gpu/GrDrawTarget.h#newcode111 src/gpu/GrDrawTarget.h:111: GrPixelConfig config() const { return fRenderTarget->config(); } On 2016/04/13 ...
4 years, 8 months ago (2016-04-13 15:28:45 UTC) #17
Brian Osman
Rebased after renaming everything to "gamma-correct", and plumbed flag down from the draw context (via ...
4 years, 8 months ago (2016-04-13 20:43:07 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/1889453002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1889453002/40001
4 years, 8 months ago (2016-04-13 20:43:17 UTC) #21
bsalomon
Agreed, this is much nicer. lgtm.
4 years, 8 months ago (2016-04-13 20:47:18 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889453002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1889453002/40001
4 years, 8 months ago (2016-04-13 20:52:56 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-04-13 20:56:25 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/0e3c55431b463b5575983c0c875909e08a3562bf

Powered by Google App Engine
This is Rietveld 408576698