Definition at line 535 of file SkRuntimeEffectTest.cpp.
◆ TestBlend()
Definition at line 537 of file SkRuntimeEffectTest.cpp.
538 : fReporter(r), fGrContext(grContext), fGraphite(graphite) {
540 }
static sk_sp< SkSurface > make_surface(GrRecordingContext *grContext, const GraphiteInfo *graphite, SkISize size)
◆ build()
void TestBlend::build |
( |
const char * |
src | ) |
|
|
inline |
Definition at line 542 of file SkRuntimeEffectTest.cpp.
542 {
544 if (!effect) {
545 ERRORF(fReporter,
"Effect didn't compile: %s", errorText.c_str());
546 return;
547 }
548 fBuilder.
init(std::move(effect));
549 }
static Result MakeForBlender(SkString sksl, const Options &)
T * init(Args &&... args)
◆ child()
Definition at line 559 of file SkRuntimeEffectTest.cpp.
559 {
561 }
BuilderChild child(std::string_view name)
DEF_SWITCHES_START aot vmservice shared library name
◆ surface()
◆ test() [1/2]
Definition at line 580 of file SkRuntimeEffectTest.cpp.
580 {
581 this->
test({expected, expected, expected, expected}, preTestCallback);
582 }
void test(std::array< GrColor, 4 > expected, PreTestFn preTestCallback=nullptr)
◆ test() [2/2]
void TestBlend::test |
( |
std::array< GrColor, 4 > |
expected, |
|
|
PreTestFn |
preTestCallback = nullptr |
|
) |
| |
|
inline |
Definition at line 563 of file SkRuntimeEffectTest.cpp.
563 {
565 if (!blender) {
566 ERRORF(fReporter,
"Effect didn't produce a blender");
567 return;
568 }
569
572 paint.setBlender(std::move(blender));
574
576
578 }
constexpr SkColor SK_ColorGRAY
static void verify_2x2_surface_results(skiatest::Reporter *r, const SkRuntimeEffect *effect, SkSurface *surface, std::array< GrColor, 4 > expected)
void paint_canvas(SkCanvas *canvas, SkPaint *paint, const PreTestFn &preTestCallback)
sk_sp< SkBlender > makeBlender() const
const SkRuntimeEffect * effect() const
◆ uniform()
The documentation for this class was generated from the following file: