Lines Matching defs:reporter
335 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLOperatorEqTest, reporter, ctxInfo) {
357 REPORTER_ASSERT(reporter, char1 == char2);
359 REPORTER_ASSERT(reporter, char1 != char2);
373 REPORTER_ASSERT(reporter, inval1 != inval2);
374 REPORTER_ASSERT(reporter, valid != inval1);
375 REPORTER_ASSERT(reporter, inval1 != valid);
381 void DDLSurfaceCharacterizationTestImpl(GrDirectContext* dContext, skiatest::Reporter* reporter) {
405 REPORTER_ASSERT(reporter, s->draw(ddl));
423 REPORTER_ASSERT(reporter, !s->draw(ddl),
437 REPORTER_ASSERT(reporter, !s->draw(ddl));
444 REPORTER_ASSERT(reporter, s->draw(ddl));
448 REPORTER_ASSERT(reporter, s->draw(ddl));
452 REPORTER_ASSERT(reporter, s->draw(ddl));
466 REPORTER_ASSERT(reporter, !s->draw(ddl)); // bc the DDL was made w/ textureability
478 REPORTER_ASSERT(reporter, !rasterSurface->characterize(&c));
495 REPORTER_ASSERT(reporter, !char1.isValid());
499 REPORTER_ASSERT(reporter, !char2.isValid());
503 REPORTER_ASSERT(reporter, char3.isValid());
504 REPORTER_ASSERT(reporter, 32 == char3.width());
505 REPORTER_ASSERT(reporter, 32 == char3.height());
521 REPORTER_ASSERT(reporter, char0.colorSpace()->isSRGB());
522 REPORTER_ASSERT(reporter, !char0.colorSpace()->gammaIsLinear());
528 REPORTER_ASSERT(reporter, char1.isValid());
529 REPORTER_ASSERT(reporter, !char1.colorSpace()->isSRGB());
530 REPORTER_ASSERT(reporter, char1.colorSpace()->gammaIsLinear());
535 REPORTER_ASSERT(reporter, char2.isValid());
536 REPORTER_ASSERT(reporter, !char2.colorSpace());
543 REPORTER_ASSERT(reporter, !invalid.isValid());
545 REPORTER_ASSERT(reporter, !stillInvalid.isValid());
564 REPORTER_ASSERT(reporter, originalBackendFormat.isValid());
565 REPORTER_ASSERT(reporter, char0.backendFormat() == originalBackendFormat);
573 REPORTER_ASSERT(reporter, char1.isValid());
574 REPORTER_ASSERT(reporter, char1.backendFormat() == newBackendFormat);
577 REPORTER_ASSERT(reporter, !invalid.isValid());
580 REPORTER_ASSERT(reporter, !stillInvalid.isValid());
600 REPORTER_ASSERT(reporter, !char0.usesGLFBO0());
604 REPORTER_ASSERT(reporter, char1.isValid());
605 REPORTER_ASSERT(reporter, char1.usesGLFBO0());
610 REPORTER_ASSERT(reporter, !invalid.isValid());
612 REPORTER_ASSERT(reporter, !stillInvalid.isValid());
624 DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(CharacterizationFBO0nessTest, reporter, ctxInfo) {
682 REPORTER_ASSERT(reporter,
691 DEF_GPUTEST_FOR_VULKAN_CONTEXT(CharacterizationVkSCBnessTest, reporter, ctxInfo) {
697 REPORTER_ASSERT(reporter, characterization.isValid());
700 REPORTER_ASSERT(reporter, ddl.get());
703 REPORTER_ASSERT(reporter, scbDrawContext->isCompatible(characterization));
709 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLSurfaceCharacterizationTest, reporter, ctxInfo) {
712 DDLSurfaceCharacterizationTestImpl(context, reporter);
719 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLNonTextureabilityTest, reporter, ctxInfo) {
758 REPORTER_ASSERT(reporter, s->draw(ddl));
766 static void test_make_render_target(skiatest::Reporter* reporter,
775 REPORTER_ASSERT(reporter, !tmp);
783 REPORTER_ASSERT(reporter, s);
785 REPORTER_ASSERT(reporter, !c.isValid());
789 REPORTER_ASSERT(reporter, c.isValid());
792 REPORTER_ASSERT(reporter, c.isCompatible(backend));
794 REPORTER_ASSERT(reporter, s->isCompatible(c));
801 REPORTER_ASSERT(reporter, s);
802 REPORTER_ASSERT(reporter, s->isCompatible(c));
810 void DDLMakeRenderTargetTestImpl(GrDirectContext* dContext, skiatest::Reporter* reporter) {
822 test_make_render_target(reporter, dContext, params);
826 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLMakeRenderTargetTest, reporter, ctxInfo) {
829 DDLMakeRenderTargetTestImpl(context, reporter);
846 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLWrapBackendTest, reporter, ctxInfo) {
891 REPORTER_ASSERT(reporter, !image);
896 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLInvalidRecorder, reporter, ctxInfo) {
916 REPORTER_ASSERT(reporter, !c.isValid());
917 REPORTER_ASSERT(reporter, !recorder.getCanvas());
918 REPORTER_ASSERT(reporter, !recorder.detach());
922 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLCreateCharacterizationFailures, reporter, ctxInfo) {
928 [proxy, reporter, maxResourceBytes](const GrBackendFormat& backendFormat,
946 REPORTER_ASSERT(reporter, !c.isValid());
1045 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLSkSurfaceFlush, reporter, ctxInfo) {
1056 ERRORF(reporter, "Could not make texture.");
1100 REPORTER_ASSERT(reporter, fulfillInfo.fFulfilled);
1106 REPORTER_ASSERT(reporter, fulfillInfo.fReleased);
1108 REPORTER_ASSERT(reporter, fulfillInfo.fTex->unique());
1114 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DDLMultipleDDLs, reporter, ctxInfo) {
1145 REPORTER_ASSERT(reporter, ddl1->priv().lazyProxyData());
1146 REPORTER_ASSERT(reporter, ddl2->priv().lazyProxyData());
1150 REPORTER_ASSERT(reporter, ddl1->priv().lazyProxyData() != ddl2->priv().lazyProxyData());
1159 REPORTER_ASSERT(reporter, bitmap.getColor(x, y) == SK_ColorGREEN);
1177 DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(DDLTextureFlagsTest, reporter, ctxInfo) {
1205 REPORTER_ASSERT(reporter, !image);
1208 REPORTER_ASSERT(reporter, image);
1212 REPORTER_ASSERT(reporter, backingProxy->mipmapped() == mipMapped);
1214 REPORTER_ASSERT(reporter, !backingProxy->hasRestrictedSampling());
1216 REPORTER_ASSERT(reporter, backingProxy->hasRestrictedSampling());
1225 DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(DDLCompatibilityTest, reporter, ctxInfo) {
1235 test_make_render_target(reporter, context, params);