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

Issue 917373002: Use uint16s for texture coordinates when rendering text. (Closed)

Created:
5 years, 10 months ago by jvanverth1
Modified:
5 years, 10 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

Use uint16s for texture coordinates when rendering text. Allows us to push more vertices into a given vertex buffer, with a slight performance improvement. Committed: https://skia.googlesource.com/skia/+/059034d252007d0dd86fff5ffdbb53cbcb10d34b Committed: https://skia.googlesource.com/skia/+/5a105ff05303ac82a867b8b84a1edd145bd46218

Patch Set 1 #

Patch Set 2 : Rebase to ToT #

Total comments: 12

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Use sizeof(int16_t) #

Patch Set 5 : Fix int to scalar conversion #

Patch Set 6 : Use float uvs for distance field paths #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -144 lines) Patch
M gyp/gpu.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M include/gpu/GrTypesPriv.h View 1 2 3 6 chunks +10 lines, -4 lines 0 comments Download
M src/gpu/GrBitmapTextContext.cpp View 1 2 4 chunks +55 lines, -32 lines 0 comments Download
M src/gpu/GrDistanceFieldTextContext.cpp View 1 2 3 4 5 3 chunks +55 lines, -32 lines 0 comments Download
A src/gpu/GrFontAtlasSizes.h View 1 chunk +28 lines, -0 lines 0 comments Download
M src/gpu/GrFontCache.cpp View 4 chunks +7 lines, -15 lines 0 comments Download
M src/gpu/effects/GrBitmapTextGeoProc.cpp View 1 2 3 chunks +6 lines, -2 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldTextureEffect.cpp View 1 2 3 4 5 16 chunks +37 lines, -59 lines 0 comments Download
M src/gpu/gl/GrGLVertexArray.h View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
jvanverth1
Seems to provide a mild improvement in text rendering -- running telemetry on my Nexus ...
5 years, 10 months ago (2015-02-13 15:47:55 UTC) #2
robertphillips
https://codereview.chromium.org/917373002/diff/20001/src/gpu/GrAADistanceFieldPathRenderer.cpp File src/gpu/GrAADistanceFieldPathRenderer.cpp (right): https://codereview.chromium.org/917373002/diff/20001/src/gpu/GrAADistanceFieldPathRenderer.cpp#newcode349 src/gpu/GrAADistanceFieldPathRenderer.cpp:349: SkScalar dy = pathData->fBounds.fTop; round_out_WH ? comment ? Would ...
5 years, 10 months ago (2015-02-13 16:10:42 UTC) #3
jvanverth1
Updated with changes. https://codereview.chromium.org/917373002/diff/20001/src/gpu/GrAADistanceFieldPathRenderer.cpp File src/gpu/GrAADistanceFieldPathRenderer.cpp (right): https://codereview.chromium.org/917373002/diff/20001/src/gpu/GrAADistanceFieldPathRenderer.cpp#newcode349 src/gpu/GrAADistanceFieldPathRenderer.cpp:349: SkScalar dy = pathData->fBounds.fTop; On 2015/02/13 ...
5 years, 10 months ago (2015-02-13 19:58:56 UTC) #4
robertphillips
lgtm
5 years, 10 months ago (2015-02-13 22:38:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917373002/40001
5 years, 10 months ago (2015-02-13 22:38:47 UTC) #7
commit-bot: I haz the power
Presubmit check for 917373002-40001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 10 months ago (2015-02-13 22:38:52 UTC) #9
jvanverth1
I need approval from one of the keepers of the public API. PTAL.
5 years, 10 months ago (2015-02-17 14:27:47 UTC) #11
bsalomon
lgtm w/ tiny nit https://codereview.chromium.org/917373002/diff/40001/include/gpu/GrTypesPriv.h File include/gpu/GrTypesPriv.h (right): https://codereview.chromium.org/917373002/diff/40001/include/gpu/GrTypesPriv.h#newcode157 include/gpu/GrTypesPriv.h:157: 2*sizeof(uint16_t) // kVec2s_GrVertexAttribType tiny nit, ...
5 years, 10 months ago (2015-02-17 15:12:34 UTC) #12
jvanverth1
https://codereview.chromium.org/917373002/diff/40001/include/gpu/GrTypesPriv.h File include/gpu/GrTypesPriv.h (right): https://codereview.chromium.org/917373002/diff/40001/include/gpu/GrTypesPriv.h#newcode157 include/gpu/GrTypesPriv.h:157: 2*sizeof(uint16_t) // kVec2s_GrVertexAttribType On 2015/02/17 15:12:34, bsalomon wrote: > ...
5 years, 10 months ago (2015-02-17 15:38:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917373002/60001
5 years, 10 months ago (2015-02-17 15:39:27 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-VS2013-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-VS2013-x86-Debug-Trybot/builds/2509)
5 years, 10 months ago (2015-02-17 16:03:41 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917373002/80001
5 years, 10 months ago (2015-02-17 16:09:58 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/059034d252007d0dd86fff5ffdbb53cbcb10d34b
5 years, 10 months ago (2015-02-17 16:40:00 UTC) #21
reed2
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/920333003/ by reed@chromium.org. ...
5 years, 10 months ago (2015-02-18 02:38:20 UTC) #22
scroggo
On 2015/02/18 02:38:20, reed2 wrote: > A revert of this CL (patchset #5 id:80001) has ...
5 years, 10 months ago (2015-02-18 14:27:46 UTC) #23
jvanverth1
Updated to use float uvs for distance field paths (via GrDistanceFieldNoGammaTextureEffect) and use the cut-down ...
5 years, 10 months ago (2015-02-18 19:16:02 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917373002/100001
5 years, 10 months ago (2015-02-18 19:22:19 UTC) #26
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 19:36:40 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/5a105ff05303ac82a867b8b84a1edd145bd46218

Powered by Google App Engine
This is Rietveld 408576698