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

Issue 4919047: Gpu can draw underlined text. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by bungeman
Modified:
13 years, 3 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : We already measure twice. #

Patch Set 3 : Pull text decoration up to canvas. #

Patch Set 4 : Fix line lengths. #

Patch Set 5 : Pull decoration implementation up to canvas. #

Patch Set 6 : Add PDF change. #

Patch Set 7 : We prefer not to be too friendly. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -88 lines) Patch
M include/core/SkCanvas.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 3 chunks +75 lines, -0 lines 0 comments Download
M src/core/SkDraw.cpp View 1 2 3 4 5 chunks +3 lines, -68 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 1 chunk +0 lines, -20 lines 2 comments Download

Messages

Total messages: 10
bungeman
See http://code.google.com/p/skia/issues/detail?id=343 . Separates the drawing of the glyphs from the drawing of the decorations ...
13 years, 3 months ago (2011-08-22 19:02:06 UTC) #1
bungeman
Pulled decoration call up to canvas.
13 years, 3 months ago (2011-08-22 20:08:54 UTC) #2
Steve VanDeBogart
On 2011/08/22 20:08:54, bungeman wrote: > Pulled decoration call up to canvas. Doing it this ...
13 years, 3 months ago (2011-08-22 20:16:19 UTC) #3
bungeman
Pulled implementation up to canvas and added PDF change.
13 years, 3 months ago (2011-08-22 20:52:58 UTC) #4
reed1
Might refactor inside canvas to remove the friend declaration, but LGTM for now.
13 years, 3 months ago (2011-08-22 21:09:51 UTC) #5
bungeman
Committed revision 2154.
13 years, 3 months ago (2011-08-22 21:32:57 UTC) #6
Steve VanDeBogart
Will this regress drawing text with an xfermode like SrcIn, since you're drawing it in ...
13 years, 3 months ago (2011-08-22 22:19:55 UTC) #7
bungeman
On 2011/08/22 22:19:55, Steve VanDeBogart wrote: > Will this regress drawing text with an xfermode ...
13 years, 3 months ago (2011-08-23 12:54:00 UTC) #8
Steve VanDeBogart
On 2011/08/23 12:54:00, bungeman wrote: > On 2011/08/22 22:19:55, Steve VanDeBogart wrote: > > Will ...
13 years, 3 months ago (2011-08-23 21:01:44 UTC) #9
bungeman
13 years, 3 months ago (2011-08-23 23:16:14 UTC) #10
>We're going from one draw call on the device to multiple draw calls to the
>device.  At least for PDF (but probably for raster as well), I don't think this
>will interact well with xfer modes that change DST.  You could composite the
>text and underline/strikethrough on a layer first.

The raster case was already drawing glyph-at-a-time and the decorations after.
This could in fact cause issues where glyphs or the decoration overlap, but this
is not currently handled. I attempted to see what PDF does, but it appears that
the PDF device does strange things or will simply go OOM (reserving 1.5GB of
memory) on some xfer modes when not using a layer. This can be seen by replacing
canvas->saveLayer with canvas->save in xfermodes.cpp.
Sign in to reply to this message.

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