Flutter Engine
The Flutter Engine
|
#include <SkSurfaceProps.h>
Public Types | |
enum | Flags { kDefault_Flag = 0 , kUseDeviceIndependentFonts_Flag = 1 << 0 , kDynamicMSAA_Flag = 1 << 1 , kAlwaysDither_Flag = 1 << 2 } |
Public Member Functions | |
SkSurfaceProps () | |
SkSurfaceProps (uint32_t flags, SkPixelGeometry) | |
SkSurfaceProps (uint32_t flags, SkPixelGeometry, SkScalar textContrast, SkScalar textGamma) | |
SkSurfaceProps (const SkSurfaceProps &)=default | |
SkSurfaceProps & | operator= (const SkSurfaceProps &)=default |
SkSurfaceProps | cloneWithPixelGeometry (SkPixelGeometry newPixelGeometry) const |
uint32_t | flags () const |
SkPixelGeometry | pixelGeometry () const |
SkScalar | textContrast () const |
SkScalar | textGamma () const |
bool | isUseDeviceIndependentFonts () const |
bool | isAlwaysDither () const |
bool | operator== (const SkSurfaceProps &that) const |
bool | operator!= (const SkSurfaceProps &that) const |
Static Public Attributes | |
static constexpr SkScalar | kMaxContrastInclusive = 1 |
static constexpr SkScalar | kMinContrastInclusive = 0 |
static constexpr SkScalar | kMaxGammaExclusive = 4 |
static constexpr SkScalar | kMinGammaInclusive = 0 |
Describes properties and constraints of a given SkSurface. The rendering engine can parse these during drawing, and can sometimes optimize its performance (e.g. disabling an expensive feature).
Definition at line 53 of file SkSurfaceProps.h.
Enumerator | |
---|---|
kDefault_Flag | |
kUseDeviceIndependentFonts_Flag | |
kDynamicMSAA_Flag | |
kAlwaysDither_Flag |
Definition at line 55 of file SkSurfaceProps.h.
SkSurfaceProps::SkSurfaceProps | ( | ) |
No flags, unknown pixel geometry, platform-default contrast/gamma.
Definition at line 37 of file SkSurface.cpp.
SkSurfaceProps::SkSurfaceProps | ( | uint32_t | flags, |
SkPixelGeometry | pg | ||
) |
TODO(kschmi): Remove this constructor and replace with the one below.
Definition at line 43 of file SkSurface.cpp.
SkSurfaceProps::SkSurfaceProps | ( | uint32_t | flags, |
SkPixelGeometry | pg, | ||
SkScalar | textContrast, | ||
SkScalar | textGamma | ||
) |
|
default |
|
inline |
Definition at line 75 of file SkSurfaceProps.h.
|
inline |
Definition at line 84 of file SkSurfaceProps.h.
|
inline |
Definition at line 93 of file SkSurfaceProps.h.
|
inline |
Definition at line 89 of file SkSurfaceProps.h.
|
inline |
Definition at line 102 of file SkSurfaceProps.h.
|
default |
|
inline |
Definition at line 97 of file SkSurfaceProps.h.
|
inline |
Definition at line 85 of file SkSurfaceProps.h.
|
inline |
Definition at line 86 of file SkSurfaceProps.h.
|
inline |
Definition at line 87 of file SkSurfaceProps.h.
|
staticconstexpr |
Definition at line 79 of file SkSurfaceProps.h.
|
staticconstexpr |
Definition at line 81 of file SkSurfaceProps.h.
|
staticconstexpr |
Definition at line 80 of file SkSurfaceProps.h.
|
staticconstexpr |
Definition at line 82 of file SkSurfaceProps.h.