diff options
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkPaint.h | 8 | ||||
-rw-r--r-- | include/core/SkScalerContext.h | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index e2b3be7645..7f3f0be223 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -98,10 +98,14 @@ public: kLCDRenderText_Flag = 0x200, //!< mask to enable subpixel glyph renderering kEmbeddedBitmapText_Flag = 0x400, //!< mask to enable embedded bitmap strikes kAutoHinting_Flag = 0x800, //!< mask to force Freetype's autohinter + + // experimental/private + kForceAAText_Flag = 0x1000, + // when adding extra flags, note that the fFlags member is specified // with a bit-width and you'll have to expand it. - kAllFlags = 0xFFF + kAllFlags = 0x1FFF }; /** Return the paint's flags. Use the Flag enum to test flag values. @@ -834,7 +838,7 @@ private: SkColor fColor; SkScalar fWidth; SkScalar fMiterLimit; - unsigned fFlags : 12; + unsigned fFlags : 13; unsigned fTextAlign : 2; unsigned fCapType : 2; unsigned fJoinType : 2; diff --git a/include/core/SkScalerContext.h b/include/core/SkScalerContext.h index b321289049..71826e8b45 100644 --- a/include/core/SkScalerContext.h +++ b/include/core/SkScalerContext.h @@ -175,6 +175,9 @@ public: // these should only ever be set if fMaskFormat is LCD16 or LCD32 kLCD_Vertical_Flag = 0x400, // else Horizontal kLCD_BGROrder_Flag = 0x800, // else RGB order + + // experimental + kForceAA_Flag = 0x1000 }; private: enum { |