add extra flag (currently unused) for high quality downsampling
BUG= R=reed@google.com, robertphillips@google.com Review URL: https://codereview.chromium.org/18386006 git-svn-id: http://skia.googlecode.com/svn/trunk@9927 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
cb6d97ca71
commit
387db0a2e5
@ -109,11 +109,12 @@ public:
|
|||||||
kVerticalText_Flag = 0x1000,
|
kVerticalText_Flag = 0x1000,
|
||||||
kGenA8FromLCD_Flag = 0x2000, // hack for GDI -- do not use if you can help it
|
kGenA8FromLCD_Flag = 0x2000, // hack for GDI -- do not use if you can help it
|
||||||
kBicubicFilterBitmap_Flag = 0x4000, // temporary flag
|
kBicubicFilterBitmap_Flag = 0x4000, // temporary flag
|
||||||
|
kHighQualityDownsampleBitmap_Flag = 0x8000, // temporary flag
|
||||||
|
|
||||||
// when adding extra flags, note that the fFlags member is specified
|
// when adding extra flags, note that the fFlags member is specified
|
||||||
// with a bit-width and you'll have to expand it.
|
// with a bit-width and you'll have to expand it.
|
||||||
|
|
||||||
kAllFlags = 0x7FFF
|
kAllFlags = 0xFFFF
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Return the paint's flags. Use the Flag enum to test flag values.
|
/** Return the paint's flags. Use the Flag enum to test flag values.
|
||||||
|
@ -59,10 +59,10 @@ public:
|
|||||||
// this uses SkPaint::Flags as a base and adds additional flags
|
// this uses SkPaint::Flags as a base and adds additional flags
|
||||||
enum DrawFilterFlags {
|
enum DrawFilterFlags {
|
||||||
kNone_DrawFilterFlag = 0,
|
kNone_DrawFilterFlag = 0,
|
||||||
kMaskFilter_DrawFilterFlag = 0x8000, // toggles on/off mask filters (e.g., blurs)
|
|
||||||
kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and normal hinting
|
kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and normal hinting
|
||||||
kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and normal hinting
|
kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and normal hinting
|
||||||
kAAClip_DrawFilterFlag = 0x40000, // toggles between soft and hard clip
|
kAAClip_DrawFilterFlag = 0x40000, // toggles between soft and hard clip
|
||||||
|
kMaskFilter_DrawFilterFlag = 0x80000, // toggles on/off mask filters (e.g., blurs)
|
||||||
};
|
};
|
||||||
|
|
||||||
SK_COMPILE_ASSERT(!(kMaskFilter_DrawFilterFlag & SkPaint::kAllFlags), maskfilter_flag_must_be_greater);
|
SK_COMPILE_ASSERT(!(kMaskFilter_DrawFilterFlag & SkPaint::kAllFlags), maskfilter_flag_must_be_greater);
|
||||||
|
Loading…
Reference in New Issue
Block a user