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 187 of file SkPaintPriv.cpp.
◆ SrcColorOpacity
Enumerator |
---|
kOpaque_SrcColorOpacity | |
kTransparentBlack_SrcColorOpacity | |
kTransparentAlpha_SrcColorOpacity | |
kUnknown_SrcColorOpacity | |
Definition at line 40 of file SkPaintPriv.cpp.
40 {
41
43
45
47
49};
@ kTransparentBlack_SrcColorOpacity
@ kTransparentAlpha_SrcColorOpacity
@ kUnknown_SrcColorOpacity
@ kOpaque_SrcColorOpacity
◆ blend_mode_is_opaque()
Definition at line 51 of file SkPaintPriv.cpp.
51 {
54 return false;
55 }
56
57 switch (src) {
62 return false;
63 default:
64 break;
65 }
66
67 switch (dst) {
69 return true;
77 default:
78 return false;
79 }
80}
SK_API bool SkBlendMode_AsCoeff(SkBlendMode mode, SkBlendModeCoeff *src, SkBlendModeCoeff *dst)
◆ changes_alpha()
static bool changes_alpha |
( |
const SkPaint & |
paint | ) |
|
|
static |
Definition at line 35 of file SkPaintPriv.cpp.
35 {
38}
static SkColorFilterBase * as_CFB(SkColorFilter *filter)
bool isAlphaUnchanged() const
◆ just_a_color()
Definition at line 134 of file SkPaintPriv.cpp.
134 {
136
137 const auto* shader =
as_SB(
paint.getShader());
138 if (shader && !shader->asLuminanceColor(&c)) {
139 return false;
140 }
141 if (
paint.getColorFilter()) {
142
144 c =
paint.getColorFilter()->filterColor4f(c, cs, cs);
145 }
148 }
149 return true;
150}
SkShaderBase * as_SB(SkShader *shader)
◆ pack_v68()
static uint32_t pack_v68 |
( |
const SkPaint & |
paint, |
|
|
unsigned |
flatFlags |
|
) |
| |
|
static |
Definition at line 216 of file SkPaintPriv.cpp.
216 {
217 uint32_t packed = 0;
218 const auto bm =
paint.asBlendMode();
219 const unsigned mode = bm ?
static_cast<unsigned>(bm.value())
221
223 (
unsigned)
paint.isAntiAlias(), 0, 8);
230 return packed;
231}
constexpr uint8_t CUSTOM_BLEND_MODE_SENTINEL
uint32_t shift_bits(T value, unsigned shift, unsigned bits)
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
◆ shift_bits()
uint32_t shift_bits |
( |
T |
value, |
|
|
unsigned |
shift, |
|
|
unsigned |
bits |
|
) |
| |
Definition at line 197 of file SkPaintPriv.cpp.
197 {
199 uint32_t v =
static_cast<uint32_t
>(
value);
201 return v << shift;
202}
#define ASSERT_FITS_IN(value, bitcount)
◆ unpack_v68()
Definition at line 233 of file SkPaintPriv.cpp.
233 {
234 paint->setAntiAlias((packed & 1) != 0);
235 paint->setDither((packed & 2) != 0);
236 packed >>= 8;
237 {
238 unsigned mode = packed & 0xFF;
241 }
242
243 }
244 packed >>= 8;
246 packed >>= 2;
248 packed >>= 2;
250 packed >>= 2;
251
252 packed >>= 2;
253
254 return packed;
255}
@ 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 |