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

Issue 177463003: New approach for GPU font atlas (Closed)

Created:
6 years, 10 months ago by jvanverth1
Modified:
6 years, 9 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

New approach for GPU font atlas In the previous code, each GrTextStrike had exclusive access to one or more GrPlots in the texture atlas. This led to poor packing when only a few glyphs were used. This change allows GrTextStrikes to share GrPlots, thereby getting much better utilization of the entire texture. BUG=skia:2224 Committed: http://code.google.com/p/skia/source/detail?r=13636

Patch Set 1 #

Patch Set 2 : Various fixes when flushing plots #

Patch Set 3 : Adjust purge order for plots. Rename list pointers. #

Patch Set 4 : Support distance fields #

Patch Set 5 : Remove unnecessary method declarations. #

Total comments: 6

Patch Set 6 : Use SKTInternalLList instead of homebrew; address comments. #

Patch Set 7 : Remove unused variable #

Patch Set 8 : Remove unnecessary reference to GrAtlasMgr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -165 lines) Patch
M src/gpu/GrAtlas.h View 1 2 3 4 5 6 7 5 chunks +19 lines, -16 lines 0 comments Download
M src/gpu/GrAtlas.cpp View 1 2 3 4 5 6 7 chunks +63 lines, -85 lines 0 comments Download
M src/gpu/GrBitmapTextContext.cpp View 2 chunks +7 lines, -8 lines 0 comments Download
M src/gpu/GrDistanceFieldTextContext.cpp View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download
M src/gpu/GrTextStrike.h View 3 chunks +6 lines, -8 lines 0 comments Download
M src/gpu/GrTextStrike.cpp View 1 2 3 4 5 6 7 4 chunks +33 lines, -41 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jvanverth1
6 years, 9 months ago (2014-02-28 16:13:08 UTC) #1
bsalomon
https://codereview.chromium.org/177463003/diff/60001/src/gpu/GrAtlas.cpp File src/gpu/GrAtlas.cpp (right): https://codereview.chromium.org/177463003/diff/60001/src/gpu/GrAtlas.cpp#newcode150 src/gpu/GrAtlas.cpp:150: if (NULL == plot || NULL == plot->fPrev) { ...
6 years, 9 months ago (2014-02-28 16:28:52 UTC) #2
jvanverth1
https://codereview.chromium.org/177463003/diff/60001/src/gpu/GrAtlas.cpp File src/gpu/GrAtlas.cpp (right): https://codereview.chromium.org/177463003/diff/60001/src/gpu/GrAtlas.cpp#newcode150 src/gpu/GrAtlas.cpp:150: if (NULL == plot || NULL == plot->fPrev) { ...
6 years, 9 months ago (2014-02-28 19:55:26 UTC) #3
bsalomon
lgtm
6 years, 9 months ago (2014-02-28 20:49:22 UTC) #4
jvanverth1
The CQ bit was checked by jvanverth@google.com
6 years, 9 months ago (2014-03-03 13:36:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/177463003/100001
6 years, 9 months ago (2014-03-03 13:36:32 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-03 13:44:22 UTC) #7
commit-bot: I haz the power
Retried try job too often on Build-Mac10.8-Clang-x86-Release-Trybot for step(s) BuildSkiaLib, BuildTests http://108.170.219.164:10117/buildstatus?builder=Build-Mac10.8-Clang-x86-Release-Trybot&number=161
6 years, 9 months ago (2014-03-03 13:44:22 UTC) #8
jvanverth1
The CQ bit was checked by jvanverth@google.com
6 years, 9 months ago (2014-03-03 14:15:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/177463003/120001
6 years, 9 months ago (2014-03-03 14:15:52 UTC) #10
commit-bot: I haz the power
6 years, 9 months ago (2014-03-03 14:30:28 UTC) #11
Message was sent while issue was closed.
Change committed as 13636

Powered by Google App Engine
This is Rietveld 408576698