From ddbd37eb68fc2dbe125df5399f17fe0f091dba41 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Tue, 21 Feb 2017 15:07:44 -0500 Subject: [PATCH] expore flags for text decoration into android-specific reserved bits BUG=skia:6250 precursor to https://skia-review.googlesource.com/c/8815/ Change-Id: I0ff13ff99299edcb7809a2088e0ace61bc8cc60d Reviewed-on: https://skia-review.googlesource.com/8816 Reviewed-by: Leon Scroggins Commit-Queue: Mike Reed --- include/core/SkPaint.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index 7a42238..0b31bb5 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -118,6 +118,15 @@ public: kAllFlags = 0xFFFF }; +#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK + enum ReserveFlags { + // These are not used by paint, but the bits are reserved for private use by the + // android framework. + kUnderlineText_ReserveFlag = 0x08, //!< mask to enable underline text + kStrikeThruText_ReserveFlag = 0x10, //!< mask to enable strike-thru text + }; +#endif + /** Return the paint's flags. Use the Flag enum to test flag values. @return the paint's flags (see enums ending in _Flag for bit masks) */ -- 2.7.4