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

Issue 159152: Linux: splice together RendererPreferences and SkFontHost (Closed)

Created:
11 years, 5 months ago by agl
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Linux: splice together RendererPreferences and SkFontHost Dan Erat has been working down, plumbing the user's font settings from XSETTINGS in the UI thread of the browser to RendererPreferences in the renderer. At the same time, I've been working upwards: implementing subpixel rendering support in Skia and adding an interface to it in WebCore. This patch joins the two together. It adds an API surface to the WebKit API for configuring the font preferences and adds code to translate from RendererPreferences to that API. It's a little unfortunate that we need four sets of enums around the code base for things like the hinting level, but each is supposed to be self contained and adding a dependancy would much more grevious. BUG=12179

Patch Set 1 #

Patch Set 2 : ... #

Total comments: 10

Patch Set 3 : ... #

Patch Set 4 : remove incorrect comment #

Total comments: 2

Patch Set 5 : ... #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -3 lines) Patch
M chrome/chrome.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
A chrome/renderer/render_view_linux.cc View 3 4 1 chunk +94 lines, -0 lines 0 comments Download
A webkit/api/public/linux/WebFontRendering.h View 3 4 1 chunk +54 lines, -0 lines 1 comment Download
A webkit/api/src/linux/WebFontRendering.cpp View 3 4 1 chunk +70 lines, -0 lines 0 comments Download
M webkit/webkit.gyp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
agl
11 years, 5 months ago (2009-07-21 20:57:18 UTC) #1
darin (slow to review)
http://codereview.chromium.org/159152/diff/1001/1002 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/159152/diff/1001/1002#newcode2711 Line 2711: WebFontPreferences::setHinting( can you break this code out into ...
11 years, 5 months ago (2009-07-21 22:33:29 UTC) #2
agl
http://codereview.chromium.org/159152/diff/1001/1002 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/159152/diff/1001/1002#newcode2711 Line 2711: WebFontPreferences::setHinting( On 2009/07/21 22:33:29, darin wrote: > can ...
11 years, 5 months ago (2009-07-21 23:07:04 UTC) #3
darin (slow to review)
LGTM http://codereview.chromium.org/159152/diff/1017/1020 File chrome/renderer/render_view.h (right): http://codereview.chromium.org/159152/diff/1017/1020#newcode618 Line 618: #if !defined(OS_LINUX) sorry to nit pick, but ...
11 years, 5 months ago (2009-07-21 23:14:46 UTC) #4
agl
Thanks. Waiting for WebKit side to be reviewed before landing. http://codereview.chromium.org/159152/diff/1017/1020 File chrome/renderer/render_view.h (right): http://codereview.chromium.org/159152/diff/1017/1020#newcode618 ...
11 years, 5 months ago (2009-07-21 23:17:19 UTC) #5
agl
updated to use Skia enums
11 years, 5 months ago (2009-07-22 00:19:04 UTC) #6
darin (slow to review)
11 years, 5 months ago (2009-07-22 14:22:50 UTC) #7
LGTM

http://codereview.chromium.org/159152/diff/22/1030
File webkit/api/public/linux/WebFontRendering.h (right):

http://codereview.chromium.org/159152/diff/22/1030#newcode46
Line 46: WEBKIT_API static void setAntiAlias(bool on);
nit: i think webkit style would be to not name these bool parameters since the
meaning of the bool is pretty obvious.

Powered by Google App Engine
This is Rietveld 408576698