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

Issue 1866293003: Decouple contrast boost from fake gamma. (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

Decouple contrast boost from fake gamma. Replace FakeGamma with FontWeightFlags. Largely mechanical, except for the changes in ignorePreBlend. With this change, text GMs generally look the same (or at least more similar) in 8888/srgb/gpu/gpusrgb configs. No public API changes. TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1866293003 Committed: https://skia.googlesource.com/skia/+/a1e8f8d8f1a0b7141136d7d49df1cc2fec0528df

Patch Set 1 #

Total comments: 3

Patch Set 2 : s/FontWeightFlags/ScalerContextFlags/ #

Patch Set 3 : Missed one. Finish renaming to ScalerContextFlags #

Total comments: 6

Patch Set 4 : Improve ignorePreBlend API, add storage type to enum #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -100 lines) Patch
M include/core/SkDraw.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M include/core/SkPaint.h View 1 2 3 2 chunks +11 lines, -5 lines 0 comments Download
M src/core/SkDraw.cpp View 1 4 chunks +9 lines, -5 lines 0 comments Download
M src/core/SkGlyphCache.h View 1 2 chunks +6 lines, -4 lines 0 comments Download
M src/core/SkPaint.cpp View 1 2 3 9 chunks +22 lines, -15 lines 0 comments Download
M src/core/SkScalerContext.h View 1 2 3 1 chunk +11 lines, -3 lines 0 comments Download
M src/gpu/text/GrAtlasTextBlob.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/text/GrAtlasTextBlob.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/text/GrAtlasTextContext.h View 1 2 4 chunks +10 lines, -6 lines 0 comments Download
M src/gpu/text/GrAtlasTextContext.cpp View 1 2 15 chunks +37 lines, -37 lines 0 comments Download
M src/gpu/text/GrStencilAndCoverTextContext.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/text/GrTextUtils.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/text/GrTextUtils.cpp View 1 9 chunks +14 lines, -14 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/ports/SkFontHost_mac.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (12 generated)
Brian Osman
More improvements to sRGB font rendering. This keeps the contrast hack intact. Largely mechanical, although ...
4 years, 8 months ago (2016-04-07 17:08:32 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/1866293003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1866293003/1
4 years, 8 months ago (2016-04-07 17:32:49 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-07 17:52:01 UTC) #8
bungeman-skia
https://codereview.chromium.org/1866293003/diff/1/include/core/SkPaint.h File include/core/SkPaint.h (right): https://codereview.chromium.org/1866293003/diff/1/include/core/SkPaint.h#newcode1088 include/core/SkPaint.h:1088: enum FontWeightFlags { Eck... the name. I liked the ...
4 years, 8 months ago (2016-04-07 18:35:09 UTC) #9
Brian Osman
Renamed everything after discussing with bungeman.
4 years, 8 months ago (2016-04-07 19:48:03 UTC) #10
bungeman-skia
https://codereview.chromium.org/1866293003/diff/40001/include/core/SkPaint.h File include/core/SkPaint.h (right): https://codereview.chromium.org/1866293003/diff/40001/include/core/SkPaint.h#newcode1088 include/core/SkPaint.h:1088: enum ScalerContextFlags { It seems we're always passing these ...
4 years, 8 months ago (2016-04-07 20:15:45 UTC) #11
Brian Osman
Minor tweaks from review. https://codereview.chromium.org/1866293003/diff/40001/include/core/SkPaint.h File include/core/SkPaint.h (right): https://codereview.chromium.org/1866293003/diff/40001/include/core/SkPaint.h#newcode1088 include/core/SkPaint.h:1088: enum ScalerContextFlags { On 2016/04/07 ...
4 years, 8 months ago (2016-04-07 21:23:46 UTC) #12
bungeman-skia
I have now stared at this until I have acquired Stockholm Syndrome and think it ...
4 years, 8 months ago (2016-04-07 22:03:52 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1866293003/50016 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1866293003/50016
4 years, 8 months ago (2016-04-07 22:04:17 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-07 22:14:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1866293003/50016 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1866293003/50016
4 years, 8 months ago (2016-04-08 13:29:24 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/8519)
4 years, 8 months ago (2016-04-08 13:30:55 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1866293003/50016 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1866293003/50016
4 years, 8 months ago (2016-04-08 13:46:57 UTC) #24
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 13:48:13 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:50016) as
https://skia.googlesource.com/skia/+/a1e8f8d8f1a0b7141136d7d49df1cc2fec0528df

Powered by Google App Engine
This is Rietveld 408576698