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

Issue 9074005: Add implementation of CanvasSkia based on RenderText. (Closed)

Created:
8 years, 11 months ago by Alexei Svitkine (slow)
Modified:
8 years, 11 months ago
Reviewers:
sky
CC:
chromium-reviews
Visibility:
Public.

Description

Add implementation of CanvasSkia based on RenderText. This allows text drawing entirely through Skia, since RenderText ultimately uses Skia to draw character glyphs. This CL adds the new code, but does not yet enable it on any platforms. That will be done in later CLs. Note: Some functions, such as CanvasSkia::DrawStringWithHalo() and PixelShouldGetHalo() are taken almost verbatim from the canvas_skia_win.cc implementation. BUG=105550 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119086

Patch Set 1 : '' #

Total comments: 7

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -1 line) Patch
M build/common.gypi View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
A ui/gfx/canvas_skia_skia.cc View 1 2 3 1 chunk +357 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 3 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Alexei Svitkine (slow)
8 years, 11 months ago (2012-01-23 21:17:15 UTC) #1
sky
Don't you need to update some gyp files? http://codereview.chromium.org/9074005/diff/19001/ui/gfx/canvas_skia_skia.cc File ui/gfx/canvas_skia_skia.cc (right): http://codereview.chromium.org/9074005/diff/19001/ui/gfx/canvas_skia_skia.cc#newcode65 ui/gfx/canvas_skia_skia.cc:65: offset ...
8 years, 11 months ago (2012-01-23 23:01:17 UTC) #2
Alexei Svitkine (slow)
I've added the gyp file changes. Please take a look and let me know if ...
8 years, 11 months ago (2012-01-24 16:22:24 UTC) #3
sky
LGTM http://codereview.chromium.org/9074005/diff/19001/ui/gfx/canvas_skia_skia.cc File ui/gfx/canvas_skia_skia.cc (right): http://codereview.chromium.org/9074005/diff/19001/ui/gfx/canvas_skia_skia.cc#newcode67 ui/gfx/canvas_skia_skia.cc:67: offset = available_height + text_size - font.GetHeight() - ...
8 years, 11 months ago (2012-01-24 17:05:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/9074005/38001
8 years, 11 months ago (2012-01-25 15:40:35 UTC) #5
commit-bot: I haz the power
8 years, 11 months ago (2012-01-25 17:49:38 UTC) #6
Change committed as 119086

Powered by Google App Engine
This is Rietveld 408576698