8 #ifndef SkSurfaceProps_DEFINED
9 #define SkSurfaceProps_DEFINED
12 #include "include/private/base/SkTo.h"
55 kUseDeviceIndependentFonts_Flag = 1 << 0,
57 kDynamicMSAA_Flag = 1 << 1,
60 kAlwaysDither_Flag = 1 << 2,
74 uint32_t
flags()
const {
return fFlags; }
78 return SkToBool(fFlags & kUseDeviceIndependentFonts_Flag);
82 return SkToBool(fFlags & kAlwaysDither_Flag);
86 return fFlags == that.fFlags && fPixelGeometry == that.fPixelGeometry;
90 return !(*
this == that);
static bool SkPixelGeometryIsH(SkPixelGeometry geo)
Definition: SkSurfaceProps.h:38
SkPixelGeometry
Description of how the LCD strips are arranged for each pixel.
Definition: SkSurfaceProps.h:19
@ kUnknown_SkPixelGeometry
Definition: SkSurfaceProps.h:20
@ kRGB_V_SkPixelGeometry
Definition: SkSurfaceProps.h:23
@ kBGR_H_SkPixelGeometry
Definition: SkSurfaceProps.h:22
@ kRGB_H_SkPixelGeometry
Definition: SkSurfaceProps.h:21
@ kBGR_V_SkPixelGeometry
Definition: SkSurfaceProps.h:24
static bool SkPixelGeometryIsBGR(SkPixelGeometry geo)
Definition: SkSurfaceProps.h:33
static bool SkPixelGeometryIsRGB(SkPixelGeometry geo)
Definition: SkSurfaceProps.h:28
static bool SkPixelGeometryIsV(SkPixelGeometry geo)
Definition: SkSurfaceProps.h:43
Describes properties and constraints of a given SkSurface.
Definition: SkSurfaceProps.h:52
SkSurfaceProps cloneWithPixelGeometry(SkPixelGeometry newPixelGeometry) const
Definition: SkSurfaceProps.h:70
Flags
Definition: SkSurfaceProps.h:54
bool isAlwaysDither() const
Definition: SkSurfaceProps.h:81
bool operator==(const SkSurfaceProps &that) const
Definition: SkSurfaceProps.h:85
uint32_t flags() const
Definition: SkSurfaceProps.h:74
bool isUseDeviceIndependentFonts() const
Definition: SkSurfaceProps.h:77
SkSurfaceProps()
No flags, unknown pixel geometry.
SkSurfaceProps(uint32_t flags, SkPixelGeometry)
bool operator!=(const SkSurfaceProps &that) const
Definition: SkSurfaceProps.h:89
SkPixelGeometry pixelGeometry() const
Definition: SkSurfaceProps.h:75
SkSurfaceProps & operator=(const SkSurfaceProps &)=default
SkSurfaceProps(const SkSurfaceProps &)=default