Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2068)

Issue 5796071: Split GrTextContext into baseclass and subclass

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by baranowski
Modified:
12 years, 1 month ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Split GrTextContext into baseclass and subclass * Turn GrTextContext into interface. Make the drawPackedGlyph method pure virtual. * Introduce GrBatchedTextContext - a base class for TextContexts that can defere multiple glyphs into single draw. * Introduce GrDefaultTextContext - a TextContext that behaves exactly as the old GrTextContext. * Add a factory method to SkGpuDevice that creates new GrTextContext. * Add a method to SkGpuDevice that destroys GrTextContext previously created by the factory. This will enable integration with GLyphy - a GPU-accelerated text rendering library. It should also make it easy to introduce other GPU-accelerated text rendering algorithms. TEST=out/Debug/gm; out/Debug/tests

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Instead of placement-new, make TextContexts long-lived with init()/finish() #

Patch Set 3 : SkGpuDevice::AutoTextContextFinish --> GrTextContext::AutoFinish #

Total comments: 10

Patch Set 4 : Removed SkPaint param + minor fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -437 lines) Patch
M gyp/gpu.gyp View 3 3 chunks +4 lines, -1 line 0 comments Download
M include/gpu/GrTextContext.h View 1 2 3 1 chunk +80 lines, -40 lines 0 comments Download
M include/gpu/SkGpuDevice.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
A src/gpu/GrBatchedTextContext.h View 1 2 3 1 chunk +86 lines, -0 lines 0 comments Download
A src/gpu/GrBatchedTextContext.cpp View 1 2 3 1 chunk +98 lines, -0 lines 0 comments Download
A src/gpu/GrDefaultTextContext.h View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
A + src/gpu/GrDefaultTextContext.cpp View 1 2 3 9 chunks +49 lines, -79 lines 0 comments Download
D src/gpu/GrTextContext.cpp View 3 1 chunk +0 lines, -312 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 7 chunks +21 lines, -5 lines 0 comments Download

Messages

Total messages: 20
baranowski
12 years, 1 month ago (2012-03-12 20:15:39 UTC) #1
bsalomon
https://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp#newcode1759 src/gpu/SkGpuDevice.cpp:1759: void SkGpuDevice::setupTextContextMemPool() { This seems like a lot of ...
12 years, 1 month ago (2012-03-13 13:04:00 UTC) #2
baranowski
https://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp#newcode1759 src/gpu/SkGpuDevice.cpp:1759: void SkGpuDevice::setupTextContextMemPool() { On 2012/03/13 13:04:01, bsalomon wrote: > ...
12 years, 1 month ago (2012-03-13 14:22:26 UTC) #3
bsalomon
https://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp#newcode1759 src/gpu/SkGpuDevice.cpp:1759: void SkGpuDevice::setupTextContextMemPool() { On 2012/03/13 14:22:26, baranowski wrote: > ...
12 years, 1 month ago (2012-03-13 14:37:53 UTC) #4
baranowski
https://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp#newcode1759 src/gpu/SkGpuDevice.cpp:1759: void SkGpuDevice::setupTextContextMemPool() { On 2012/03/13 14:37:54, bsalomon wrote: > ...
12 years, 1 month ago (2012-03-13 15:27:27 UTC) #5
baranowski
http://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): http://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp#newcode1759 src/gpu/SkGpuDevice.cpp:1759: void SkGpuDevice::setupTextContextMemPool() { On 2012/03/13 15:27:27, baranowski wrote: > ...
12 years, 1 month ago (2012-03-14 16:11:45 UTC) #6
bsalomon
On 2012/03/14 16:11:45, baranowski wrote: > http://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp > File src/gpu/SkGpuDevice.cpp (right): > > http://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp#newcode1759 > ...
12 years, 1 month ago (2012-03-14 17:38:26 UTC) #7
baranowski
On 2012/03/14 17:38:26, bsalomon wrote: > On 2012/03/14 16:11:45, baranowski wrote: > > http://codereview.appspot.com/5796071/diff/2001/src/gpu/SkGpuDevice.cpp > ...
12 years, 1 month ago (2012-03-14 18:25:36 UTC) #8
bsalomon
On 2012/03/14 18:25:36, baranowski wrote: > On 2012/03/14 17:38:26, bsalomon wrote: > > On 2012/03/14 ...
12 years, 1 month ago (2012-03-14 19:02:33 UTC) #9
baranowski
On 2012/03/14 19:02:33, bsalomon wrote: > On 2012/03/14 18:25:36, baranowski wrote: > > mvMatrix is ...
12 years, 1 month ago (2012-03-14 19:16:15 UTC) #10
baranowski
Uploaded new patch set with init()/finish() methods. I decided to make the stack helper nested ...
12 years, 1 month ago (2012-03-14 20:18:03 UTC) #11
bsalomon
On 2012/03/14 19:16:15, baranowski wrote: > On 2012/03/14 19:02:33, bsalomon wrote: > > On 2012/03/14 ...
12 years, 1 month ago (2012-03-14 20:36:19 UTC) #12
bsalomon
On 2012/03/14 20:18:03, baranowski wrote: > Uploaded new patch set with init()/finish() methods. I decided ...
12 years, 1 month ago (2012-03-14 20:41:54 UTC) #13
baranowski
On 2012/03/14 20:41:54, bsalomon wrote: > If the callsite is in SkGpuDevice why does it ...
12 years, 1 month ago (2012-03-14 21:14:02 UTC) #14
baranowski
Moved helper to GrTextStrike. Removed mvMatrix argument. Made init(...) and finish() protected.
12 years, 1 month ago (2012-03-14 22:12:43 UTC) #15
bsalomon
I talked to Mike about SkPaint and getting the outline. He said that GrFontScaler could ...
12 years, 1 month ago (2012-03-15 15:14:31 UTC) #16
baranowski
Removed SkPaint argument. http://codereview.appspot.com/5796071/diff/8002/include/gpu/GrTextContext.h File include/gpu/GrTextContext.h (right): http://codereview.appspot.com/5796071/diff/8002/include/gpu/GrTextContext.h#newcode32 include/gpu/GrTextContext.h:32: AutoFinish(GrTextContext* textContext, GrContext* context, On 2012/03/15 ...
12 years, 1 month ago (2012-03-15 15:57:11 UTC) #17
bsalomon
LGTM. OK if I commit tomorrow morning? This will require a change to chrome's skia.gyp. ...
12 years, 1 month ago (2012-03-15 17:33:56 UTC) #18
baranowski
On 2012/03/15 17:33:56, bsalomon wrote: > LGTM. OK if I commit tomorrow morning? This will ...
12 years, 1 month ago (2012-03-15 18:59:49 UTC) #19
bsalomon
12 years, 1 month ago (2012-03-16 14:10:53 UTC) #20
Landed at r3412. (I added a comment or two, removed the instance count debug
code, and removed a few lines that just contained a semicolon).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b