From 3e91b123543823f9e7fb844756273a4fc9f3a760 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Mon, 14 Jan 2019 17:38:15 +0000 Subject: [PATCH] Revert "remove SK_SUPPORT_LEGACY_PAINT_FONT_FIELDS" This reverts commit e0e41efcfb3afa1ed1faef7d93014508391c2f44. Reason for revert: did this break loading old skps? Original change's description: > remove SK_SUPPORT_LEGACY_PAINT_FONT_FIELDS > > Bug: skia: > Change-Id: I756bf2e3e37d6f2bb1d4a786ce8f41a25f83ba67 > Reviewed-on: https://skia-review.googlesource.com/c/183320 > Reviewed-by: Mike Reed > Commit-Queue: Mike Reed > Auto-Submit: Mike Reed TBR=reed@google.com Change-Id: Iefec7a1fa52fcff4f937532de41f3828cdeaf186 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia: Reviewed-on: https://skia-review.googlesource.com/c/183802 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- include/core/SkFontTypes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/core/SkFontTypes.h b/include/core/SkFontTypes.h index bb1b03f227..c7c8abd257 100644 --- a/include/core/SkFontTypes.h +++ b/include/core/SkFontTypes.h @@ -12,6 +12,10 @@ // remove me once google3 uses IWYU #include "SkTypeface.h" +#ifndef SK_SUPPORT_LEGACY_PAINT_FONT_FIELDS +#define SK_SUPPORT_LEGACY_PAINT_FONT_FIELDS +#endif + enum class SkTextEncoding { kUTF8, //!< uses bytes to represent UTF-8 or ASCII kUTF16, //!< uses two byte words to represent most of Unicode