From ce06e261e68848ae21cac1052abc16bc07b961bf Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Tue, 1 Aug 2017 16:23:40 -0400 Subject: Make ProcessorCloneTest more robust, fix matrix conv. onIsEqual Change-Id: Iddf860b462dcac36f6a7f5b90d4ce4dceed0dd31 Reviewed-on: https://skia-review.googlesource.com/29604 Reviewed-by: Robert Phillips Commit-Queue: Brian Salomon --- tests/ProcessorTest.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/ProcessorTest.cpp') diff --git a/tests/ProcessorTest.cpp b/tests/ProcessorTest.cpp index e2625a7e31..8354225ce7 100644 --- a/tests/ProcessorTest.cpp +++ b/tests/ProcessorTest.cpp @@ -554,6 +554,15 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ProcessorCloneTest, reporter, ctxInfo) { !clone->instantiate(context->resourceProvider())) { continue; } + REPORTER_ASSERT(reporter, !strcmp(fp->name(), clone->name())); + REPORTER_ASSERT(reporter, fp->compatibleWithCoverageAsAlpha() == + clone->compatibleWithCoverageAsAlpha()); + REPORTER_ASSERT(reporter, fp->isEqual(*clone)); + REPORTER_ASSERT(reporter, fp->preservesOpaqueInput() == clone->preservesOpaqueInput()); + REPORTER_ASSERT(reporter, fp->hasConstantOutputForConstantInput() == + clone->hasConstantOutputForConstantInput()); + REPORTER_ASSERT(reporter, fp->numChildProcessors() == clone->numChildProcessors()); + REPORTER_ASSERT(reporter, fp->usesLocalCoords() == clone->usesLocalCoords()); // Draw with original and read back the results. test_draw_op(rtc.get(), fp, inputTexture); memset(readData1.get(), 0x0, sizeof(GrColor) * kRenderSize * kRenderSize); -- cgit v1.2.3