Go to the source code of this file.
◆ ASSERT_FITS_IN
#define ASSERT_FITS_IN |
( |
|
value, |
|
|
|
bitcount |
|
) |
| |
◆ FlatFlags
Enumerator |
---|
kHasTypeface_FlatFlag | |
kHasEffects_FlatFlag | |
kFlatFlagMask | |
Definition at line 188 of file SkPaintPriv.cpp.
◆ SrcColorOpacity
Enumerator |
---|
kOpaque_SrcColorOpacity | |
kTransparentBlack_SrcColorOpacity | |
kTransparentAlpha_SrcColorOpacity | |
kUnknown_SrcColorOpacity | |
Definition at line 41 of file SkPaintPriv.cpp.
41 {
42
44
46
48
50};
@ kTransparentBlack_SrcColorOpacity
@ kTransparentAlpha_SrcColorOpacity
@ kUnknown_SrcColorOpacity
@ kOpaque_SrcColorOpacity
◆ blend_mode_is_opaque()
Definition at line 52 of file SkPaintPriv.cpp.
52 {
55 return false;
56 }
57
63 return false;
64 default:
65 break;
66 }
67
70 return true;
78 default:
79 return false;
80 }
81}
SK_API bool SkBlendMode_AsCoeff(SkBlendMode mode, SkBlendModeCoeff *src, SkBlendModeCoeff *dst)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
◆ changes_alpha()
static bool changes_alpha |
( |
const SkPaint & |
paint | ) |
|
|
static |
Definition at line 36 of file SkPaintPriv.cpp.
36 {
39}
static SkColorFilterBase * as_CFB(SkColorFilter *filter)
bool isAlphaUnchanged() const
◆ just_a_color()
Definition at line 135 of file SkPaintPriv.cpp.
135 {
137
138 const auto* shader =
as_SB(
paint.getShader());
139 if (shader && !shader->asLuminanceColor(&c)) {
140 return false;
141 }
142 if (
paint.getColorFilter()) {
143
145 c =
paint.getColorFilter()->filterColor4f(c, cs, cs);
146 }
149 }
150 return true;
151}
SkShaderBase * as_SB(SkShader *shader)
◆ pack_v68()
static uint32_t pack_v68 |
( |
const SkPaint & |
paint, |
|
|
unsigned |
flatFlags |
|
) |
| |
|
static |
Definition at line 217 of file SkPaintPriv.cpp.
217 {
218 uint32_t packed = 0;
219 const auto bm =
paint.asBlendMode();
220 const unsigned mode = bm ?
static_cast<unsigned>(bm.value())
222
224 (
unsigned)
paint.isAntiAlias(), 0, 8);
231 return packed;
232}
constexpr uint8_t CUSTOM_BLEND_MODE_SENTINEL
uint32_t shift_bits(T value, unsigned shift, unsigned bits)
◆ shift_bits()
uint32_t shift_bits |
( |
T |
value, |
|
|
unsigned |
shift, |
|
|
unsigned |
bits |
|
) |
| |
Definition at line 198 of file SkPaintPriv.cpp.
198 {
200 uint32_t v =
static_cast<uint32_t
>(
value);
202 return v << shift;
203}
#define ASSERT_FITS_IN(value, bitcount)
◆ unpack_v68()
Definition at line 234 of file SkPaintPriv.cpp.
234 {
235 paint->setAntiAlias((packed & 1) != 0);
236 paint->setDither((packed & 2) != 0);
237 packed >>= 8;
238 {
239 unsigned mode = packed & 0xFF;
242 }
243
244 }
245 packed >>= 8;
247 packed >>= 2;
249 packed >>= 2;
251 packed >>= 2;
252
253 packed >>= 2;
254
255 return packed;
256}
@ kLastMode
last valid value
@ kLast_Cap
largest Cap value
@ kStrokeAndFill_Style
sets to stroke and fill geometry
@ kLast_Join
equivalent to the largest value for Join
T checkLE(uint64_t value, T max)
◆ CUSTOM_BLEND_MODE_SENTINEL
constexpr uint8_t CUSTOM_BLEND_MODE_SENTINEL = 0xFF |
|
constexpr |