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

Unified Diff: include/core/SkSurfaceProps.h

Issue 2257643003: remove disable aa/dither flags from Props -- never used (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: restore gm, only remove disable aspects Created 4 years, 4 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/surface.cpp ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkSurfaceProps.h
diff --git a/include/core/SkSurfaceProps.h b/include/core/SkSurfaceProps.h
index 735561f1dc9180a1cb9f044fa23856ae915f08c1..da04d1fe929846ef6046d9d2ddd220257fa29b68 100644
--- a/include/core/SkSurfaceProps.h
+++ b/include/core/SkSurfaceProps.h
@@ -51,9 +51,7 @@ static inline bool SkPixelGeometryIsV(SkPixelGeometry geo) {
class SK_API SkSurfaceProps {
public:
enum Flags {
- kDisallowAntiAlias_Flag = 1 << 0,
- kDisallowDither_Flag = 1 << 1,
- kUseDeviceIndependentFonts_Flag = 1 << 2,
+ kUseDeviceIndependentFonts_Flag = 1 << 0,
};
/** Deprecated alias used by Chromium. Will be removed. */
static const Flags kUseDistanceFieldFonts_Flag = kUseDeviceIndependentFonts_Flag;
@@ -70,8 +68,6 @@ public:
uint32_t flags() const { return fFlags; }
SkPixelGeometry pixelGeometry() const { return fPixelGeometry; }
- bool isDisallowAA() const { return SkToBool(fFlags & kDisallowAntiAlias_Flag); }
- bool isDisallowDither() const { return SkToBool(fFlags & kDisallowDither_Flag); }
bool isUseDeviceIndependentFonts() const {
return SkToBool(fFlags & kUseDeviceIndependentFonts_Flag);
}
« no previous file with comments | « gm/surface.cpp ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698