33#if defined(SK_BUILD_FOR_WIN)
59 default:
return nullptr;
97 if (ctl2X != dstX || ctl2Y != dstY) {
147 if (
path.isRect(&
rect, &isClosed, &direction) &&
157 kEmpty_SkipFillState,
158 kSingleLine_SkipFillState,
159 kNonSingleLine_SkipFillState,
161 SkipFillState fillState = kEmpty_SkipFillState;
176 lastMovePt =
args[0];
177 fillState = kEmpty_SkipFillState;
182 if ((fillState == kEmpty_SkipFillState) && (
args[0] != lastMovePt)) {
183 fillState = kSingleLine_SkipFillState;
186 fillState = kNonSingleLine_SkipFillState;
192 fillState = kNonSingleLine_SkipFillState;
202 fillState = kNonSingleLine_SkipFillState;
208 args[3].fX,
args[3].fY, ¤tSegment);
209 fillState = kNonSingleLine_SkipFillState;
215 currentSegment.
reset();
262 content->writeText(
"/Pattern CS/Pattern cs");
273 for (
int i = places;
i > 0; --
i) {
278 for (j = places; j > 1; --j) {
288static constexpr int int_pow(
int base,
unsigned exp,
int acc = 1) {
292 (exp % 2) ? acc *
base : acc);
299 if (
x >= kFactor ||
x <= 0) {
320 if (!
matrix.invert(&inverse)) {
329 std::unique_ptr<SkPDFDict> resources,
331 const int kTiling_PatternType = 1;
332 const int kColoredTilingPattern_PaintType = 1;
333 const int kConstantSpacing_TilingType = 1;
336 pattern->
insertInt(
"PatternType", kTiling_PatternType);
337 pattern->
insertInt(
"PaintType", kColoredTilingPattern_PaintType);
338 pattern->
insertInt(
"TilingType", kConstantSpacing_TilingType);
342 pattern->
insertObject(
"Resources", std::move(resources));
343 if (!
matrix.isIdentity()) {
362#ifdef SK_PDF_BASE85_BINARY
366 dst->writeText(
"\n");
369 uint8_t
src[4] = {0, 0, 0, 0};
373 dst->writeText(
"~>\n");
376 uint32_t v = ((uint32_t)
src[0] << 24) | ((uint32_t)
src[1] << 16) |
377 ((uint32_t)
src[2] << 8) |
src[3];
378 if (v == 0 &&
count == 4) {
383 for (
int n = 4; n > 0; --n) {
384 buffer[n] = (v % 85) +
'!';
392 dst->writeText(
"\n");
412#if defined(SK_BUILD_FOR_WIN)
419 dt->
fYear = st.wYear;
436 gmtime_r(&m_time, &tstruct);
438 dt->
fYear = tstruct.tm_year + 1900;
@ kExclusion
rc = s + d - two(s*d), ra = kSrcOver
@ kSaturation
saturation of source with hue and luminosity of destination
@ kColorBurn
darken destination to reflect source
@ kLighten
rc = s + d - min(s*da, d*sa), ra = kSrcOver
@ kHue
hue of source with saturation and luminosity of destination
@ kMultiply
r = s*(1-da) + d*(1-sa) + s*d
@ kColorDodge
brighten destination to reflect source
@ kSrcOver
r = s + (1-sa)*d
@ kXor
r = s*(1-da) + d*(1-sa)
@ kLuminosity
luminosity of source with hue and saturation of destination
@ kSoftLight
lighten or darken, depending on source
@ kDifference
rc = s + d - 2*(min(s*da, d*sa)), ra = kSrcOver
@ kOverlay
multiply or screen, depending on destination
@ kColor
hue and saturation of source with luminosity of destination
@ kHardLight
multiply or screen, depending on source
@ kDarken
rc = s + d - max(s*da, d*sa), ra = kSrcOver
#define SkFixedRoundToInt(x)
#define sk_float_round2int(x)
void SkConvertQuadToCubic(const SkPoint src[3], SkPoint dst[4])
static SkImage_Base * as_IB(SkImage *image)
void SkPDFWriteResourceName(SkWStream *dst, SkPDFResourceType type, int key)
static std::unique_ptr< SkPDFArray > SkPDFMakeArray(Args... args)
static size_t print_permil_as_decimal(int x, char *result, unsigned places)
static void append_quad(const SkPoint quad[], SkWStream *content)
static void append_cubic(SkScalar ctl1X, SkScalar ctl1Y, SkScalar ctl2X, SkScalar ctl2Y, SkScalar dstX, SkScalar dstY, SkWStream *content)
static constexpr int int_pow(int base, unsigned exp, int acc=1)
#define NOT_IMPLEMENTED(condition, assertion)
constexpr uint8_t SkToU8(S x)
size_t bytesWritten() const override
bool writeToStream(SkWStream *dst) const
SkISize dimensions() const
static void SetAffineIdentity(SkScalar affine[6])
bool mapRect(SkRect *dst, const SkRect &src, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
void insertName(const char key[], const char nameValue[])
void insertObject(const char key[], std::unique_ptr< SkPDFObject > &&)
void insertInt(const char key[], int32_t value)
void insertScalar(const char key[], SkScalar value)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
@ kStrokeAndFill_Style
sets to stroke and fill geometry
static bool AllPointsEq(const SkPoint pts[], int count)
Verb next(SkPoint pts[4])
SkScalar conicWeight() const
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
static float min(float r, float g, float b)
union flutter::testing::@2836::KeyboardChange::@76 content
void GetDateTime(SkPDF::DateTime *)
void ApplyGraphicState(int objectIndex, SkWStream *content)
void PopulateTilingPatternDict(SkPDFDict *pattern, SkRect &bbox, std::unique_ptr< SkPDFDict > resources, const SkMatrix &matrix)
size_t ColorToDecimalF(float value, char result[kFloatColorDecimalCount+2])
size_t ColorToDecimal(uint8_t value, char result[5])
const char * BlendModeName(SkBlendMode)
std::unique_ptr< SkPDFArray > MatrixToArray(const SkMatrix &matrix)
void EmitPath(const SkPath &path, SkPaint::Style paintStyle, bool doConsumeDegerates, SkWStream *content, SkScalar tolerance=0.25f)
void AppendRectangle(const SkRect &rect, SkWStream *content)
void PaintPath(SkPaint::Style style, SkPathFillType fill, SkWStream *content)
void AppendScalar(SkScalar value, SkWStream *stream)
void MoveTo(SkScalar x, SkScalar y, SkWStream *content)
void AppendLine(SkScalar x, SkScalar y, SkWStream *content)
void AppendTransform(const SkMatrix &, SkWStream *)
void ApplyPattern(int objectIndex, SkWStream *content)
bool ToBitmap(const SkImage *img, SkBitmap *dst)
bool InverseTransformBBox(const SkMatrix &matrix, SkRect *bbox)
void ClosePath(SkWStream *content)
static constexpr unsigned kFloatColorDecimalCount
void StrokePath(SkWStream *content)
std::unique_ptr< SkPDFArray > RectToArray(const SkRect &rect)
unsigned useCenter Optional< SkMatrix > matrix
sk_sp< SkBlender > blender SkRect rect
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
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
void MoveTo(PathBuilder *builder, Scalar x, Scalar y)
static double time(int loops, Benchmark *bench, Target *target)
uint8_t fDayOfWeek
0..6, 0==Sunday
static constexpr SkPoint Make(float x, float y)
constexpr float left() const
constexpr float top() const
constexpr float height() const
constexpr float right() const
constexpr float width() const
constexpr float bottom() const