diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-11-21 19:32:29 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-11-21 19:32:29 +0000 |
commit | b6bb5cb7c2573a9829a0d3aa7b16a55830a7e816 (patch) | |
tree | 602e7f79f52c9bd188e68d84b3ae7e3b20ea1383 /include | |
parent | 8426058dee0faf75a18b81cfcde47ee8ab8c31d9 (diff) |
reorder bits and remove obsolete kForceAA experimental bit
git-svn-id: http://skia.googlecode.com/svn/trunk@2725 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPaint.h | 5 | ||||
-rw-r--r-- | include/core/SkScalerContext.h | 33 |
2 files changed, 15 insertions, 23 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index 8649ea227f..db11b33a33 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -101,13 +101,10 @@ public: kAutoHinting_Flag = 0x800, //!< mask to force Freetype's autohinter kVerticalText_Flag = 0x1000, - // experimental/private - kForceAAText_Flag = 0x2000, - // when adding extra flags, note that the fFlags member is specified // with a bit-width and you'll have to expand it. - kAllFlags = 0x2FFF + kAllFlags = 0x1FFF }; /** Return the paint's flags. Use the Flag enum to test flag values. diff --git a/include/core/SkScalerContext.h b/include/core/SkScalerContext.h index c9fb83b2c4..04dd847ff1 100644 --- a/include/core/SkScalerContext.h +++ b/include/core/SkScalerContext.h @@ -157,28 +157,23 @@ struct SkGlyph { class SkScalerContext { public: enum Flags { - kFrameAndFill_Flag = 0x01, - kDevKernText_Flag = 0x02, - kGammaForBlack_Flag = 0x04, // illegal to set both Gamma flags - kGammaForWhite_Flag = 0x08, // illegal to set both Gamma flags - + kFrameAndFill_Flag = 0x0001, + kDevKernText_Flag = 0x0002, + kEmbeddedBitmapText_Flag = 0x0004, + kEmbolden_Flag = 0x0008, + kSubpixelPositioning_Flag = 0x0010, + kAutohinting_Flag = 0x0020, + kVertical_Flag = 0x0040, // together, these two flags resulting in a two bit value which matches // up with the SkPaint::Hinting enum. - kHintingBit1_Flag = 0x10, - kHintingBit2_Flag = 0x20, - - kEmbeddedBitmapText_Flag = 0x40, - kEmbolden_Flag = 0x80, - kSubpixelPositioning_Flag = 0x100, - kAutohinting_Flag = 0x200, - kVertical_Flag = 0x400, - + kHintingBit1_Flag = 0x0080, + kHintingBit2_Flag = 0x0100, // these should only ever be set if fMaskFormat is LCD16 or LCD32 - kLCD_Vertical_Flag = 0x0800, // else Horizontal - kLCD_BGROrder_Flag = 0x1000, // else RGB order - - // experimental - kForceAA_Flag = 0x2000 + kLCD_Vertical_Flag = 0x0200, // else Horizontal + kLCD_BGROrder_Flag = 0x0400, // else RGB order + // gamma flags + kGammaForBlack_Flag = 0x0800, + kGammaForWhite_Flag = 0x1000, }; private: enum { |