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 <scroggo@google.com>
Commit-Queue: Mike Reed <reed@google.com>
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 @@
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)
*/