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

Issue 2240623002: Move GrAtlasTextContext to GrDrawingManager, so we only have one. (Closed)

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

Move GrAtlasTextContext to GrDrawingManager, so we only have one. Ultimately, avoids wasteful redundant computation and storage of distance field fake-gamma tables. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2240623002 Committed: https://skia.googlesource.com/skia/+/86e7626f080028edd58f4b326e0ba9fa83c4208e

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix alignment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -43 lines) Patch
M include/gpu/GrDrawContext.h View 2 chunks +0 lines, -2 lines 0 comments Download
M src/gpu/GrDrawContext.cpp View 3 chunks +10 lines, -19 lines 0 comments Download
M src/gpu/GrDrawingManager.h View 1 4 chunks +15 lines, -9 lines 0 comments Download
M src/gpu/GrDrawingManager.cpp View 1 chunk +8 lines, -0 lines 1 comment Download
M src/gpu/GrPathRenderingDrawContext.cpp View 3 chunks +6 lines, -3 lines 0 comments Download
M src/gpu/text/GrStencilAndCoverTextContext.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/text/GrStencilAndCoverTextContext.cpp View 1 chunk +4 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
Brian Osman
4 years, 4 months ago (2016-08-11 18:25:45 UTC) #5
robertphillips
https://codereview.chromium.org/2240623002/diff/1/src/gpu/GrDrawingManager.h File src/gpu/GrDrawingManager.h (right): https://codereview.chromium.org/2240623002/diff/1/src/gpu/GrDrawingManager.h#newcode10 src/gpu/GrDrawingManager.h:10: Can we predeclare this rather than include it? https://codereview.chromium.org/2240623002/diff/1/src/gpu/GrDrawingManager.h#newcode86 ...
4 years, 4 months ago (2016-08-11 18:33:09 UTC) #6
bsalomon
lgtm w/ nit https://codereview.chromium.org/2240623002/diff/1/src/gpu/GrDrawingManager.h File src/gpu/GrDrawingManager.h (right): https://codereview.chromium.org/2240623002/diff/1/src/gpu/GrDrawingManager.h#newcode87 src/gpu/GrDrawingManager.h:87: SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; preserve alignment (or unalign ...
4 years, 4 months ago (2016-08-11 18:33:45 UTC) #7
bsalomon
https://codereview.chromium.org/2240623002/diff/1/src/gpu/GrDrawingManager.h File src/gpu/GrDrawingManager.h (right): https://codereview.chromium.org/2240623002/diff/1/src/gpu/GrDrawingManager.h#newcode86 src/gpu/GrDrawingManager.h:86: On 2016/08/11 18:33:08, robertphillips wrote: > might as well ...
4 years, 4 months ago (2016-08-11 18:34:44 UTC) #8
Brian Osman
Fixed alignment https://codereview.chromium.org/2240623002/diff/1/src/gpu/GrDrawingManager.h File src/gpu/GrDrawingManager.h (right): https://codereview.chromium.org/2240623002/diff/1/src/gpu/GrDrawingManager.h#newcode10 src/gpu/GrDrawingManager.h:10: On 2016/08/11 18:33:08, robertphillips wrote: > Can ...
4 years, 4 months ago (2016-08-11 18:37:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2240623002/20001
4 years, 4 months ago (2016-08-11 18:38:33 UTC) #12
robertphillips
lgtm
4 years, 4 months ago (2016-08-11 18:52:12 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/86e7626f080028edd58f4b326e0ba9fa83c4208e
4 years, 4 months ago (2016-08-11 19:17:36 UTC) #15
jvanverth1
4 years, 4 months ago (2016-08-11 19:39:46 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/2240623002/diff/20001/src/gpu/GrDrawingManage...
File src/gpu/GrDrawingManager.cpp (right):

https://codereview.chromium.org/2240623002/diff/20001/src/gpu/GrDrawingManage...
src/gpu/GrDrawingManager.cpp:154: if (!fAtlasTextContext) {
Sorry I'm late to the party. Is there any problem with just creating this in the
constructor for GrDrawingManager? It would avoid a conditional every time we
draw text.

Powered by Google App Engine
This is Rietveld 408576698