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

Unified Diff: skia/ext/skia_utils_base.h

Issue 1877673002: Move legacyCreateTypeface to SkFontStyle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DEPS change now that Skia change has landed. 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 | « skia/chromium_skia_defines.gypi ('k') | skia/ext/skia_utils_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_base.h
diff --git a/skia/ext/skia_utils_base.h b/skia/ext/skia_utils_base.h
index 77a9490bf610f73e89159d6a59d5b84882544325..60423dc76b02ac8d8f3c90c717c17ed6cf916eb8 100644
--- a/skia/ext/skia_utils_base.h
+++ b/skia/ext/skia_utils_base.h
@@ -21,6 +21,10 @@ SK_API bool ReadSkString(base::PickleIterator* iter, SkString* str);
SK_API bool ReadSkFontIdentity(base::PickleIterator* iter,
SkFontConfigInterface::FontIdentity* identity);
+// Return true if the pickle/iterator contains a SkFontStyle. If so, and if
+// style is not null, copy it into style.
+SK_API bool ReadSkFontStyle(base::PickleIterator* iter, SkFontStyle* style);
+
// Return true if str can be written into the request pickle.
SK_API bool WriteSkString(base::Pickle* pickle, const SkString& str);
@@ -29,6 +33,9 @@ SK_API bool WriteSkFontIdentity(
base::Pickle* pickle,
const SkFontConfigInterface::FontIdentity& identity);
+// Return true if str can be written into the request pickle.
+SK_API bool WriteSkFontStyle(base::Pickle* pickle, SkFontStyle style);
+
// Determine the default pixel geometry (for LCD) by querying the font host
SK_API SkPixelGeometry ComputeDefaultPixelGeometry();
« no previous file with comments | « skia/chromium_skia_defines.gypi ('k') | skia/ext/skia_utils_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698