7#ifndef SkPDFUtils_DEFINED
8#define SkPDFUtils_DEFINED
36namespace SkPDF {
struct DateTime; }
42 return 0 == memcmp(u, v, n *
sizeof(
T));
46#define PRINT_NOT_IMPL(str) fprintf(stderr, str)
48#define PRINT_NOT_IMPL(str)
51#define NOT_IMPLEMENTED(condition, assertion) \
53 if ((bool)(condition)) { \
54 PRINT_NOT_IMPL("NOT_IMPLEMENTED: " #condition "\n"); \
55 SkDEBUGCODE(SkASSERT(!assertion);) \
120 uint16_t utf16[2] = {0, 0};
139 std::unique_ptr<SkPDFDict> resources,
144#ifdef SK_PDF_BASE85_BINARY
unsigned SkFloatToDecimal(float value, char output[kMaximumSkFloatToDecimalLength])
constexpr unsigned kMaximumSkFloatToDecimalLength
bool SkPackedArrayEqual(T *u, T *v, size_t n)
SkShaderBase * as_SB(SkShader *shader)
static const SkMatrix & I()
virtual bool write(const void *buffer, size_t size)=0
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)
void WriteUInt8(SkWStream *wStream, uint8_t value)
size_t ColorToDecimalF(float value, char result[kFloatColorDecimalCount+2])
size_t ColorToDecimal(uint8_t value, char result[5])
void AppendColorComponent(uint8_t value, SkWStream *wStream)
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 WriteUInt16BE(SkWStream *wStream, uint16_t value)
void AppendTransform(const SkMatrix &, SkWStream *)
SkMatrix GetShaderLocalMatrix(const SkShader *shader)
void ApplyPattern(int objectIndex, SkWStream *content)
bool ToBitmap(const SkImage *img, SkBitmap *dst)
void AppendColorComponentF(float value, SkWStream *wStream)
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)
void WriteUTF16beHex(SkWStream *wStream, SkUnichar utf32)
unsigned useCenter Optional< SkMatrix > matrix
sk_sp< SkBlender > blender SkRect rect
SK_SPI size_t ToUTF16(SkUnichar uni, uint16_t utf16[2]=nullptr)
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