 |
Skia
2D Graphics Library
|
Go to the documentation of this file.
8 #ifndef SkSurfaceProps_DEFINED
9 #define SkSurfaceProps_DEFINED
54 kUseDeviceIndependentFonts_Flag = 1 << 0,
57 static const Flags kUseDistanceFieldFonts_Flag = kUseDeviceIndependentFonts_Flag;
66 uint32_t
flags()
const {
return fFlags; }
70 return SkToBool(fFlags & kUseDeviceIndependentFonts_Flag);
74 return fFlags == that.fFlags && fPixelGeometry == that.fPixelGeometry;
78 return !(*
this == that);
SkSurfaceProps()
No flags, unknown pixel geometry.
@ kBGR_H_SkPixelGeometry
Definition: SkSurfaceProps.h:21
bool operator!=(const SkSurfaceProps &that) const
Definition: SkSurfaceProps.h:77
@ kBGR_V_SkPixelGeometry
Definition: SkSurfaceProps.h:23
static bool SkPixelGeometryIsRGB(SkPixelGeometry geo)
Definition: SkSurfaceProps.h:27
@ kRGB_H_SkPixelGeometry
Definition: SkSurfaceProps.h:20
@ kUnknown_SkPixelGeometry
Definition: SkSurfaceProps.h:19
@ kRGB_V_SkPixelGeometry
Definition: SkSurfaceProps.h:22
uint32_t flags() const
Definition: SkSurfaceProps.h:66
bool isUseDeviceIndependentFonts() const
Definition: SkSurfaceProps.h:69
SkPixelGeometry pixelGeometry() const
Definition: SkSurfaceProps.h:67
static bool SkPixelGeometryIsH(SkPixelGeometry geo)
Definition: SkSurfaceProps.h:37
static constexpr bool SkToBool(const T &x)
Definition: SkTypes.h:497
#define SK_API
Definition: SkTypes.h:181
SkSurfaceProps(const SkSurfaceProps &)
Describes properties and constraints of a given SkSurface.
Definition: SkSurfaceProps.h:51
SkSurfaceProps(uint32_t flags, SkPixelGeometry)
SkSurfaceProps & operator=(const SkSurfaceProps &)
SkPixelGeometry
Description of how the LCD strips are arranged for each pixel.
Definition: SkSurfaceProps.h:18
static bool SkPixelGeometryIsV(SkPixelGeometry geo)
Definition: SkSurfaceProps.h:42
static bool SkPixelGeometryIsBGR(SkPixelGeometry geo)
Definition: SkSurfaceProps.h:32
bool operator==(const SkSurfaceProps &that) const
Definition: SkSurfaceProps.h:73
Flags
Definition: SkSurfaceProps.h:53