Go to the source code of this file.
◆ DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
Definition at line 119 of file SkSLES2ConformanceTest.cpp.
122 {
128 });
129}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
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
static SkImageInfo MakeN32Premul(int width, int height)
◆ DEF_TEST() [1/2]
DEF_TEST |
( |
SkSL_ES2Conformance_Fail |
, |
|
|
r |
|
|
) |
| |
◆ DEF_TEST() [2/2]
DEF_TEST |
( |
SkSL_ES2Conformance_Pass_CPU |
, |
|
|
r |
|
|
) |
| |
Definition at line 110 of file SkSLES2ConformanceTest.cpp.
110 {
113
116 });
117}
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
◆ iterate_dir()
static void iterate_dir |
( |
const char * |
directory, |
|
|
const std::function< void(const char *)> & |
run |
|
) |
| |
|
static |
Definition at line 99 of file SkSLES2ConformanceTest.cpp.
99 {
103
104 while (iter.next(&
name,
false)) {
107 }
108}
SkString GetResourcePath(const char *resource)
static SkString Join(const char *rootPath, const char *relativePath)
const char * c_str() const
DEF_SWITCHES_START aot vmservice shared library name
◆ test_expect_fail()
Definition at line 41 of file SkSLES2ConformanceTest.cpp.
41 {
44 if (!shaderData) {
46 return;
47 }
48
49 SkString shaderString{
reinterpret_cast<const char*
>(shaderData->
bytes()), shaderData->
size()};
52 ERRORF(r,
"%s: Expected failure, but compiled successfully",
54 return;
55 }
56}
sk_sp< SkData > GetResourceAsData(const char *resource)
const uint8_t * bytes() const
static SkString Basename(const char *fullPath)
static Result MakeForShader(SkString sksl, const Options &)
◆ test_expect_pass()
Definition at line 58 of file SkSLES2ConformanceTest.cpp.
58 {
61 if (!shaderData) {
62 ERRORF(r,
"%s: Unable to load file", testFile);
63 return;
64 }
65
66 SkString shaderString{
reinterpret_cast<const char*
>(shaderData->
bytes()), shaderData->
size()};
70 return;
71 }
72
75 if (!shader) {
76 ERRORF(r,
"%s: Unable to build shader", testFile);
77 return;
78 }
79
83
87 0, 0));
88
91 ERRORF(r,
"%s: Expected solid green. Actual:\n"
92 "RRGGBBAA\n"
93 "%02X%02X%02X%02X",
94 testFile,
96 }
97}
#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,...)
void setShader(sk_sp< SkShader > shader)
static constexpr SkRect MakeWH(float w, float h)