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

Unified Diff: content/common/font_config_ipc_linux.cc

Issue 1877673002: Move legacyCreateTypeface to SkFontStyle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/font_config_ipc_linux.h ('k') | skia/chromium_skia_defines.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/font_config_ipc_linux.cc
diff --git a/content/common/font_config_ipc_linux.cc b/content/common/font_config_ipc_linux.cc
index 08fed236fa59c561f92885d9cd065667ea26d264..f274cf4c462b155bdb52e19465bc63373f684a8a 100644
--- a/content/common/font_config_ipc_linux.cc
+++ b/content/common/font_config_ipc_linux.cc
@@ -64,10 +64,10 @@ FontConfigIPC::~FontConfigIPC() {
}
bool FontConfigIPC::matchFamilyName(const char familyName[],
- SkTypeface::Style requestedStyle,
+ SkFontStyle requestedStyle,
FontIdentity* outFontIdentity,
SkString* outFamilyName,
- SkTypeface::Style* outStyle) {
+ SkFontStyle* outStyle) {
TRACE_EVENT0("sandbox_ipc", "FontConfigIPC::matchFamilyName");
size_t familyNameLen = familyName ? strlen(familyName) : 0;
if (familyNameLen > kMaxFontFamilyLength)
@@ -76,7 +76,7 @@ bool FontConfigIPC::matchFamilyName(const char familyName[],
base::Pickle request;
request.WriteInt(METHOD_MATCH);
request.WriteData(familyName, familyNameLen);
- request.WriteUInt32(requestedStyle);
+ request.WriteUInt32(static_cast<uint32_t>(requestedStyle));
dcheng 2016/04/11 19:51:06 How does this work? Isn't SkFontStyle a class? htt
bungeman-chromium 2016/04/11 20:32:17 It is a class, but is explicitly convertible to a
dcheng 2016/04/11 21:06:50 Right, I see that it just wraps a union that's uin
bungeman-chromium 2016/04/11 22:31:10 The Skia change linked in the description is being
uint8_t reply_buf[2048];
const ssize_t r = base::UnixDomainSocket::SendRecvMsg(
@@ -106,7 +106,7 @@ bool FontConfigIPC::matchFamilyName(const char familyName[],
if (outFamilyName)
*outFamilyName = reply_family;
if (outStyle)
- *outStyle = static_cast<SkTypeface::Style>(reply_style);
+ *outStyle = static_cast<SkFontStyle>(reply_style);
return true;
}
« no previous file with comments | « content/common/font_config_ipc_linux.h ('k') | skia/chromium_skia_defines.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698