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

Issue 144283002: Add factory class for generating various flavors of GrTextContext. (Closed)

Created:
6 years, 11 months ago by jvanverth1
Modified:
6 years, 11 months ago
Reviewers:
bsalomon, reed1
CC:
skia-review_googlegroups.com, Chris Dalton
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Add factory class for generating various flavors of GrTextContext. This is the first pass of making Gr*TextContext more generic and easily subclassed. The next stage will be making GrBitmapTextContext and GrDistanceFieldTextContext more similar by moving the SkDraw loop into each subclass. BUG=skia:2018 Committed: http://code.google.com/p/skia/source/detail?r=13142 Committed: http://code.google.com/p/skia/source/detail?r=13165

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address comments #

Patch Set 3 : Revise GrTextContext destruction. #

Total comments: 10

Patch Set 4 : Add ManagedTextContext class. #

Patch Set 5 : Add some missing SkNEWs. #

Patch Set 6 : Add placement delete for ManagedTextContext #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -32 lines) Patch
M include/gpu/GrBitmapTextContext.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M include/gpu/GrDistanceFieldTextContext.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M include/gpu/GrTextContext.h View 1 2 3 4 5 2 chunks +75 lines, -2 lines 0 comments Download
M include/gpu/SkGpuDevice.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M src/gpu/GrBitmapTextContext.cpp View 2 chunks +4 lines, -6 lines 0 comments Download
M src/gpu/GrDistanceFieldTextContext.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 7 chunks +31 lines, -12 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jvanverth1
6 years, 11 months ago (2014-01-21 20:34:56 UTC) #1
bsalomon
https://codereview.chromium.org/144283002/diff/1/include/gpu/GrTextContext.h File include/gpu/GrTextContext.h (right): https://codereview.chromium.org/144283002/diff/1/include/gpu/GrTextContext.h#newcode50 include/gpu/GrTextContext.h:50: * This class wraps the creation of a single ...
6 years, 11 months ago (2014-01-21 20:46:17 UTC) #2
jvanverth1
https://codereview.chromium.org/144283002/diff/1/include/gpu/GrTextContext.h File include/gpu/GrTextContext.h (right): https://codereview.chromium.org/144283002/diff/1/include/gpu/GrTextContext.h#newcode50 include/gpu/GrTextContext.h:50: * This class wraps the creation of a single ...
6 years, 11 months ago (2014-01-21 21:10:56 UTC) #3
tfarina
https://codereview.chromium.org/144283002/diff/1/include/gpu/GrTextContext.h File include/gpu/GrTextContext.h (right): https://codereview.chromium.org/144283002/diff/1/include/gpu/GrTextContext.h#newcode38 include/gpu/GrTextContext.h:38: private: while here, remove this empty section?
6 years, 11 months ago (2014-01-21 23:49:45 UTC) #4
jvanverth1
I've revised how GrTextContexts are destroyed; now operator delete() has been overridden for GrTextContext so ...
6 years, 11 months ago (2014-01-22 18:24:33 UTC) #5
bsalomon
https://codereview.chromium.org/144283002/diff/100001/include/gpu/GrTextContext.h File include/gpu/GrTextContext.h (right): https://codereview.chromium.org/144283002/diff/100001/include/gpu/GrTextContext.h#newcode45 include/gpu/GrTextContext.h:45: GrTextContext* Create(GrContext* context, const GrPaint& grPaint, nit: since Create ...
6 years, 11 months ago (2014-01-22 19:13:36 UTC) #6
jvanverth1
https://codereview.chromium.org/144283002/diff/100001/include/gpu/GrTextContext.h File include/gpu/GrTextContext.h (right): https://codereview.chromium.org/144283002/diff/100001/include/gpu/GrTextContext.h#newcode45 include/gpu/GrTextContext.h:45: GrTextContext* Create(GrContext* context, const GrPaint& grPaint, On 2014/01/22 19:13:36, ...
6 years, 11 months ago (2014-01-22 20:28:40 UTC) #7
jvanverth1
Note: I renamed GrTextContextFactory to GrTextContextManager, since that seemed more accurate.
6 years, 11 months ago (2014-01-22 20:55:05 UTC) #8
bsalomon
On 2014/01/22 20:55:05, JimVV wrote: > Note: I renamed GrTextContextFactory to GrTextContextManager, since that seemed ...
6 years, 11 months ago (2014-01-22 21:01:17 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/144283002/310001
6 years, 11 months ago (2014-01-22 21:25:13 UTC) #10
commit-bot: I haz the power
Change committed as 13142
6 years, 11 months ago (2014-01-22 21:37:07 UTC) #11
jvanverth1
A revert of this CL has been created in https://codereview.chromium.org/145023006/ by jvanverth@google.com. The reason for ...
6 years, 11 months ago (2014-01-22 21:53:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/jvanverth@google.com/144283002/430001
6 years, 11 months ago (2014-01-24 13:40:25 UTC) #13
commit-bot: I haz the power
6 years, 11 months ago (2014-01-24 14:38:36 UTC) #14
Message was sent while issue was closed.
Change committed as 13165

Powered by Google App Engine
This is Rietveld 408576698