Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(842)

Unified Diff: include/core/SkPaint.h

Issue 239393002: remove legacy filter-flags, and store FilterLevel directly (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: use DEF_TEST Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/core/SkPicture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPaint.h
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 7a647f0ea2aff89f998ac206656214099afeed32..95fc0b87ad0be45dc85cd0569849c24e766d50d6 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -52,14 +52,6 @@ typedef const SkGlyph& (*SkMeasureCacheProc)(SkGlyphCache*, const char**);
*/
class SK_API SkPaint {
- enum {
- // DEPRECATED -- use setFilterLevel instead
- kFilterBitmap_Flag = 0x02, // temporary flag
- // DEPRECATED -- use setFilterLevel instead
- kHighQualityFilterBitmap_Flag = 0x4000, // temporary flag
- // DEPRECATED -- use setFilterLevel instead
- kHighQualityDownsampleBitmap_Flag = 0x8000, // temporary flag
- };
public:
SkPaint();
SkPaint(const SkPaint& paint);
@@ -310,7 +302,7 @@ public:
* Return the filter level. This affects the quality (and performance) of
* drawing scaled images.
*/
- FilterLevel getFilterLevel() const;
+ FilterLevel getFilterLevel() const { return (FilterLevel)fFilterLevel; }
/**
* Set the filter level. This affects the quality (and performance) of
@@ -1072,7 +1064,8 @@ private:
unsigned fStyle : 2;
unsigned fTextEncoding : 2; // 3 values
unsigned fHinting : 2;
- //unsigned fFreeBits : 4;
+ unsigned fFilterLevel : 2;
+ //unsigned fFreeBits : 2;
};
uint32_t fBitfields;
};
« no previous file with comments | « no previous file | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698