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

Unified Diff: include/core/SkPaint.h

Issue 1192413005: Remove distance field flag from SkPaint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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 | « gm/dftext.cpp ('k') | src/core/SkPaint.cpp » ('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 e4be06e03e8207b802a509e79ee37c7f88fa11f5..0d24820f5b564f19efe27f30b6893828fcb1d730 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -116,8 +116,6 @@ public:
kAutoHinting_Flag = 0x800, //!< mask to force Freetype's autohinter
kVerticalText_Flag = 0x1000,
kGenA8FromLCD_Flag = 0x2000, // hack for GDI -- do not use if you can help it
- kDistanceFieldTextTEMP_Flag = 0x4000, //!< TEMPORARY mask to enable distance fields
- // currently overrides LCD and subpixel rendering
// when adding extra flags, note that the fFlags member is specified
// with a bit-width and you'll have to expand it.
@@ -284,19 +282,6 @@ public:
*/
void setDevKernText(bool devKernText);
- /** Helper for getFlags(), returns true if kDistanceFieldTextTEMP_Flag bit is set
- @return true if the distanceFieldText bit is set in the paint's flags.
- */
- bool isDistanceFieldTextTEMP() const {
- return SkToBool(this->getFlags() & kDistanceFieldTextTEMP_Flag);
- }
-
- /** Helper for setFlags(), setting or clearing the kDistanceFieldTextTEMP_Flag bit
- @param distanceFieldText true to set the kDistanceFieldTextTEMP_Flag bit in the paint's
- flags, false to clear it.
- */
- void setDistanceFieldTextTEMP(bool distanceFieldText);
-
#ifdef SK_SUPPORT_LEGACY_FILTERLEVEL_ENUM
enum FilterLevel {
kNone_FilterLevel = kNone_SkFilterQuality,
« no previous file with comments | « gm/dftext.cpp ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698