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

Issue 18339: Attempt at getting GDI text to render when drawn using canvas. I added... (Closed)

Created:
11 years, 11 months ago by sky
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Attempt at getting GDI text to render when drawn using canvas. I added layer depth to PlatformContextSkia and explicitly do a begin/end layer when drawing GDI text if there isn't already one. This seems heavy handed, but works. Let me know if you prefer another approach. I realize this will need to be upstreamed and not land here, I wanted to get your approval before doing that. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8409

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 9

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -4 lines) Patch
M third_party/WebKit/WebCore/platform/graphics/chromium/FontChromiumWin.cpp View 1 2 3 4 5 3 chunks +15 lines, -2 lines 0 comments Download
M third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/WebCore/platform/graphics/skia/ImageBufferSkia.cpp View 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.h View 1 2 3 4 5 6 3 chunks +29 lines, -0 lines 0 comments Download
M third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.cpp View 1 2 3 4 5 6 6 chunks +58 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sky
11 years, 11 months ago (2009-01-16 23:24:14 UTC) #1
sky
I've changed this around based on our conversation Friday, specifically: . When drawing text with ...
11 years, 11 months ago (2009-01-20 20:53:18 UTC) #2
brettw
http://codereview.chromium.org/18339/diff/212/14 File third_party/WebKit/WebCore/platform/graphics/chromium/FontChromiumWin.cpp (right): http://codereview.chromium.org/18339/diff/212/14#newcode184 Line 184: graphicsContext->beginTransparencyLayer(1.0); Can you mention that this doesn't handle ...
11 years, 11 months ago (2009-01-21 18:04:25 UTC) #3
sky
New snapshot uploaded. http://codereview.chromium.org/18339/diff/212/15 File third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.cpp (right): http://codereview.chromium.org/18339/diff/212/15#newcode479 Line 479: paint.setPorterDuffXfermode(SkPorterDuff::kDstIn_Mode); On 2009/01/21 18:04:25, brettw ...
11 years, 11 months ago (2009-01-21 18:38:40 UTC) #4
brettw
http://codereview.chromium.org/18339/diff/212/15 File third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.cpp (right): http://codereview.chromium.org/18339/diff/212/15#newcode118 Line 118: , m_imageBufferClip(NULL) Use 0 instead of Null in ...
11 years, 11 months ago (2009-01-21 18:56:55 UTC) #5
sky
Updated. If you still aren't happy with the comment in PlatformContextSkia.h just send me what ...
11 years, 11 months ago (2009-01-21 19:09:25 UTC) #6
brettw
11 years, 11 months ago (2009-01-21 19:11:11 UTC) #7
LGTM.

For the note, can you tack on "I'm not 100% sure this is what WebKit expects for
image clipping." to the end of the comment.

Powered by Google App Engine
This is Rietveld 408576698