6#include "SkFlattenableSerialization.h"
18 SkDebugf(
"couldn't open file %s\n", filename);
23 SkDebugf(
"couldn't read file %s\n", filename);
39 if (flattenable !=
nullptr) {
40 SkDebugf(
"Valid stream detected.\n");
43 paint.setImageFilter(flattenable);
52 SkDebugf(
"Filter DAG rendered successfully.\n");
55 SkDebugf(
"Invalid stream detected.\n");
62 SkDebugf(
"Test case: %s\n", filename);
75 canvas.
clear(0x00000000);
76 for (
int i = 1;
i < argc;
i++)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
FILE * sk_fopen(const char path[], SkFILE_Flags)
size_t sk_fgetsize(FILE *)
static bool read_test_case(const char *filename, SkString *testdata)
int main(int argc, char **argv)
static bool read_and_run_test_case(const char *filename, const SkBitmap &bitmap, SkCanvas *canvas)
static void run_test_case(const SkString &testdata, const SkBitmap &bitmap, SkCanvas *canvas)
static const int kBitmapSize
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void clear(SkColor color)
const char * data() const
const char * c_str() const
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)