From 387db0a2e516ca01508f7d16433f84da2ea3b93b Mon Sep 17 00:00:00 2001 From: "humper@google.com" Date: Tue, 9 Jul 2013 14:13:04 +0000 Subject: [PATCH] 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 --- include/core/SkPaint.h | 3 ++- tools/PictureRenderer.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index d390ce29f3..9785213e88 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -109,11 +109,12 @@ public: kVerticalText_Flag = 0x1000, kGenA8FromLCD_Flag = 0x2000, // hack for GDI -- do not use if you can help it kBicubicFilterBitmap_Flag = 0x4000, // temporary flag + kHighQualityDownsampleBitmap_Flag = 0x8000, // temporary flag // when adding extra flags, note that the fFlags member is specified // 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. diff --git a/tools/PictureRenderer.h b/tools/PictureRenderer.h index 738b812279..6a84130ac6 100644 --- a/tools/PictureRenderer.h +++ b/tools/PictureRenderer.h @@ -59,10 +59,10 @@ public: // this uses SkPaint::Flags as a base and adds additional flags enum DrawFilterFlags { kNone_DrawFilterFlag = 0, - kMaskFilter_DrawFilterFlag = 0x8000, // toggles on/off mask filters (e.g., blurs) kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and normal hinting kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and normal hinting 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);