49 SkString shaderString{
reinterpret_cast<const char*
>(shaderData->
bytes()), shaderData->
size()};
52 ERRORF(r,
"%s: Expected failure, but compiled successfully",
62 ERRORF(r,
"%s: Unable to load file", testFile);
66 SkString shaderString{
reinterpret_cast<const char*
>(shaderData->
bytes()), shaderData->
size()};
76 ERRORF(r,
"%s: Unable to build shader", testFile);
91 ERRORF(r,
"%s: Expected solid green. Actual:\n"
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
sk_sp< SkData > GetResourceAsData(const char *resource)
SkString GetResourcePath(const char *resource)
#define SkColorGetR(color)
#define SkColorGetG(color)
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
#define SkColorGetA(color)
#define SkColorGetB(color)
#define REPORTER_ASSERT(r, cond,...)
const uint8_t * bytes() const
SK_SPI bool next(SkString *name, bool getDir=false)
static SkString Join(const char *rootPath, const char *relativePath)
static SkString Basename(const char *fullPath)
void setShader(sk_sp< SkShader > shader)
static Result MakeForShader(SkString sksl, const Options &)
const char * c_str() const
Dart_NativeFunction function
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
SK_API sk_sp< SkSurface > RenderTarget(GrRecordingContext *context, skgpu::Budgeted budgeted, const SkImageInfo &imageInfo, int sampleCount, GrSurfaceOrigin surfaceOrigin, const SkSurfaceProps *surfaceProps, bool shouldCreateWithMips=false, bool isProtected=false)
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
static SkImageInfo MakeN32Premul(int width, int height)
static constexpr SkRect MakeWH(float w, float h)