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

Unified Diff: src/core/SkPictureData.cpp

Issue 910283002: Switch font embedding to a compile-time flag, with a todo for runtime. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureData.cpp
diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp
index 73cf2bf215837dbac845850bf5ade507891d983d..ddd074e9a49882d6d762c5063aec8476c1d07c5e 100644
--- a/src/core/SkPictureData.cpp
+++ b/src/core/SkPictureData.cpp
@@ -177,10 +177,10 @@ void SkPictureData::WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec) {
rec.copyToArray((SkRefCnt**)array);
for (int i = 0; i < count; i++) {
-#ifdef SK_BUILD_FOR_UNIX
+#ifdef SK_PICTURE_FORCE_FONT_EMBEDDING
array[i]->serializeForcingEmbedding(stream);
#else
- // FIXME: Macs and Windows don't draw pixel-perfect if we embed fonts in the SKP.
+ // TODO: if (embedFonts) { array[i]->serializeForcingEmbedding(stream) } else
array[i]->serialize(stream);
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698