Index: include/core/SkSurfaceProps.h |
diff --git a/include/core/SkSurfaceProps.h b/include/core/SkSurfaceProps.h |
index 108359922feb6bce146074aa51d676fdcd4ce61b..735561f1dc9180a1cb9f044fa23856ae915f08c1 100644 |
--- a/include/core/SkSurfaceProps.h |
+++ b/include/core/SkSurfaceProps.h |
@@ -51,10 +51,13 @@ static inline bool SkPixelGeometryIsV(SkPixelGeometry geo) { |
class SK_API SkSurfaceProps { |
public: |
enum Flags { |
- kDisallowAntiAlias_Flag = 1 << 0, |
- kDisallowDither_Flag = 1 << 1, |
- kUseDistanceFieldFonts_Flag = 1 << 2, |
+ kDisallowAntiAlias_Flag = 1 << 0, |
+ kDisallowDither_Flag = 1 << 1, |
+ kUseDeviceIndependentFonts_Flag = 1 << 2, |
}; |
+ /** Deprecated alias used by Chromium. Will be removed. */ |
+ static const Flags kUseDistanceFieldFonts_Flag = kUseDeviceIndependentFonts_Flag; |
+ |
SkSurfaceProps(uint32_t flags, SkPixelGeometry); |
enum InitType { |
@@ -69,7 +72,9 @@ public: |
bool isDisallowAA() const { return SkToBool(fFlags & kDisallowAntiAlias_Flag); } |
bool isDisallowDither() const { return SkToBool(fFlags & kDisallowDither_Flag); } |
- bool isUseDistanceFieldFonts() const { return SkToBool(fFlags & kUseDistanceFieldFonts_Flag); } |
+ bool isUseDeviceIndependentFonts() const { |
+ return SkToBool(fFlags & kUseDeviceIndependentFonts_Flag); |
+ } |
private: |
SkSurfaceProps(); |