Definition at line 446 of file SkRuntimeEffectTest.cpp.
◆ TestEffect()
Definition at line 448 of file SkRuntimeEffectTest.cpp.
451 {2, 2})
452 : fReporter(r), fGrContext(grContext), fGraphite(graphite), fSize(
size) {
454 }
static sk_sp< SkSurface > make_surface(GrRecordingContext *grContext, const GraphiteInfo *graphite, SkISize size)
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 keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ build()
void TestEffect::build |
( |
const char * |
src | ) |
|
|
inline |
Definition at line 456 of file SkRuntimeEffectTest.cpp.
456 {
460 if (!effect) {
461 ERRORF(fReporter,
"Effect didn't compile: %s", errorText.c_str());
462 return;
463 }
464 fBuilder.
init(std::move(effect));
465 }
static void AllowPrivateAccess(SkRuntimeEffect::Options *options)
static Result MakeForShader(SkString sksl, const Options &)
T * init(Args &&... args)
◆ child()
Definition at line 471 of file SkRuntimeEffectTest.cpp.
471 {
473 }
BuilderChild child(std::string_view name)
DEF_SWITCHES_START aot vmservice shared library name
◆ test() [1/2]
Definition at line 522 of file SkRuntimeEffectTest.cpp.
522 {
523 this->
test({expected, expected, expected, expected}, preTestCallback);
524 }
void test(std::array< GrColor, 4 > expected, PreTestFn preTestCallback=nullptr)
◆ test() [2/2]
void TestEffect::test |
( |
std::array< GrColor, 4 > |
expected, |
|
|
PreTestFn |
preTestCallback = nullptr |
|
) |
| |
|
inline |
Definition at line 475 of file SkRuntimeEffectTest.cpp.
475 {
477 if (!shader) {
478 ERRORF(fReporter,
"Effect didn't produce a shader");
479 return;
480 }
481
483
484
485
486
487
488
490
492 paint.setShader(std::move(shader));
494
496
498 }
constexpr SkColor SK_ColorBLACK
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)
void clear(SkColor color)
const SkRuntimeEffect * effect() const
sk_sp< SkShader > makeShader(const SkMatrix *localMatrix=nullptr) const
◆ trace()
std::string TestEffect::trace |
( |
const SkIPoint & |
traceCoord | ) |
|
|
inline |
Definition at line 500 of file SkRuntimeEffectTest.cpp.
500 {
502 if (!shader) {
503 ERRORF(fReporter,
"Effect didn't produce a shader");
504 return {};
505 }
506
508
511 paint.setShader(std::move(debugShader));
513
515
517 debugTrace->dump(&wstream);
519 return std::string(
static_cast<const char*
>(streamData->
data()), streamData->
size());
520 }
const void * data() const
sk_sp< SkData > detachAsData()
static TracedShader MakeTraced(sk_sp< SkShader > shader, const SkIPoint &traceCoord)
◆ uniform()
The documentation for this class was generated from the following file: