23 SkCanvas* c = pdfDoc->beginPage(612.0f, 792.0f);
DEF_TEST(SkPDF_OpaqueSrcModeToSrcOver, r)
static void run_test(SkWStream *out, SkBlendMode mode, U8CPU alpha)
@ kSrcOver
r = s + (1-sa)*d
constexpr SkAlpha SK_AlphaOPAQUE
constexpr SkColor SK_ColorWHITE
#define REPORTER_ASSERT(r, cond,...)
#define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER)
void drawRect(const SkRect &rect, const SkPaint &paint)
size_t bytesWritten() const override
void setColor(SkColor color)
void setBlendMode(SkBlendMode mode)
SK_API sk_sp< SkDocument > MakeDocument(SkWStream *stream, const Metadata &metadata)
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
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeWH(float w, float h)