8#ifndef SkSurfaceProps_DEFINED
9#define SkSurfaceProps_DEFINED
57 kUseDeviceIndependentFonts_Flag = 1 << 0,
59 kDynamicMSAA_Flag = 1 << 1,
62 kAlwaysDither_Flag = 1 << 2,
79 static constexpr SkScalar kMaxContrastInclusive = 1;
80 static constexpr SkScalar kMinContrastInclusive = 0;
81 static constexpr SkScalar kMaxGammaExclusive = 4;
82 static constexpr SkScalar kMinGammaInclusive = 0;
98 return fFlags == that.fFlags && fPixelGeometry == that.fPixelGeometry &&
99 fTextContrast == that.fTextContrast && fTextGamma == that.fTextGamma;
103 return !(*
this == that);
static bool SkPixelGeometryIsH(SkPixelGeometry geo)
@ kUnknown_SkPixelGeometry
static bool SkPixelGeometryIsBGR(SkPixelGeometry geo)
static bool SkPixelGeometryIsRGB(SkPixelGeometry geo)
static bool SkPixelGeometryIsV(SkPixelGeometry geo)
static constexpr bool SkToBool(const T &x)
SkSurfaceProps cloneWithPixelGeometry(SkPixelGeometry newPixelGeometry) const
SkScalar textGamma() const
SkSurfaceProps & operator=(const SkSurfaceProps &)=default
bool isAlwaysDither() const
bool operator==(const SkSurfaceProps &that) const
bool isUseDeviceIndependentFonts() const
bool operator!=(const SkSurfaceProps &that) const
SkPixelGeometry pixelGeometry() const
SkScalar textContrast() const
SkSurfaceProps(const SkSurfaceProps &)=default
FlutterSemanticsFlag flags