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

Issue 1713693002: Use unorm shorts for texture coordinates when rendering text. (Closed)

Created:
4 years, 10 months ago by jvanverth1
Modified:
4 years, 10 months ago
Reviewers:
joshualitt
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Use unorm shorts for texture coordinates when rendering text. There are a couple of reasons for this: - Vulkan does not guarantee conversions from integral vertex attributes to floating point shader variables - This may be faster and more precise on some platforms, as it avoids the aforementioned conversion and changes a multiply by a very small value to a multiply by a medium-sized value. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1713693002 TBR=bsalomon@google.com Committed: https://skia.googlesource.com/skia/+/e507ff0460f4f878214b9454fb5b9ab8d64d8063 Committed: https://skia.googlesource.com/skia/+/7023a00c35d904e4ccff09c377e9ba26abba6181

Patch Set 1 #

Total comments: 2

Patch Set 2 : Cache log2 of width and height #

Patch Set 3 : Fix one maskformat #

Patch Set 4 : Add highp #

Patch Set 5 : Fix tabbing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -47 lines) Patch
M include/gpu/GrTypesPriv.h View 6 chunks +6 lines, -6 lines 0 comments Download
M src/gpu/GrBatchAtlas.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrTest.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/gpu/effects/GrBitmapTextGeoProc.cpp View 1 2 3 2 chunks +5 lines, -8 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldGeoProc.cpp View 1 2 3 4 chunks +18 lines, -22 lines 0 comments Download
M src/gpu/gl/GrGLVertexArray.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/text/GrAtlasTextBlob_regenInBatch.cpp View 1 2 3 9 chunks +31 lines, -9 lines 0 comments Download
M src/gpu/text/GrBatchFontCache.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/text/GrBatchFontCache.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
jvanverth1
As one might expect, there are some differences in the GMs, but they're not visible ...
4 years, 10 months ago (2016-02-18 20:02:08 UTC) #3
joshualitt
lgtm + question https://codereview.chromium.org/1713693002/diff/1/src/gpu/GrBatchAtlas.h File src/gpu/GrBatchAtlas.h (right): https://codereview.chromium.org/1713693002/diff/1/src/gpu/GrBatchAtlas.h#newcode24 src/gpu/GrBatchAtlas.h:24: int log2Height() const { return SkNextLog2(fHeight); ...
4 years, 10 months ago (2016-02-18 20:12:12 UTC) #4
jvanverth1
https://codereview.chromium.org/1713693002/diff/1/src/gpu/GrBatchAtlas.h File src/gpu/GrBatchAtlas.h (right): https://codereview.chromium.org/1713693002/diff/1/src/gpu/GrBatchAtlas.h#newcode24 src/gpu/GrBatchAtlas.h:24: int log2Height() const { return SkNextLog2(fHeight); } On 2016/02/18 ...
4 years, 10 months ago (2016-02-18 20:21:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1713693002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1713693002/40001
4 years, 10 months ago (2016-02-19 14:02:49 UTC) #8
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/6650)
4 years, 10 months ago (2016-02-19 14:04:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1713693002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1713693002/40001
4 years, 10 months ago (2016-02-19 14:23:36 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/e507ff0460f4f878214b9454fb5b9ab8d64d8063
4 years, 10 months ago (2016-02-19 14:35:27 UTC) #15
jvanverth1
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1709133003/ by jvanverth@google.com. ...
4 years, 10 months ago (2016-02-19 16:42:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1713693002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1713693002/80001
4 years, 10 months ago (2016-02-22 19:02:50 UTC) #20
commit-bot: I haz the power
4 years, 10 months ago (2016-02-22 19:25:35 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/7023a00c35d904e4ccff09c377e9ba26abba6181

Powered by Google App Engine
This is Rietveld 408576698