From a91e0b7cc2537dc57ccf67914638e13b4612ffd1 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Mon, 1 May 2017 13:12:20 -0400 Subject: Allow TextureSamplers to have null GrTexture pointer Bug: 715488 Change-Id: I69775cbb50d334d81872e236e59368fe65e698ff Reviewed-on: https://skia-review.googlesource.com/14605 Commit-Queue: Robert Phillips Reviewed-by: Brian Salomon --- tests/ProcessorTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/ProcessorTest.cpp') diff --git a/tests/ProcessorTest.cpp b/tests/ProcessorTest.cpp index e5bbc92759..29ea29f9a2 100644 --- a/tests/ProcessorTest.cpp +++ b/tests/ProcessorTest.cpp @@ -350,6 +350,10 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ProcessorOptimizationValidationTest, repor } for (int j = 0; j < timesToInvokeFactory; ++j) { fp = FPFactory::MakeIdx(i, &testData); + if (fp->isBad()) { + continue; + } + if (!fp->hasConstantOutputForConstantInput() && !fp->preservesOpaqueInput() && !fp->compatibleWithCoverageAsAlpha()) { continue; -- cgit v1.2.3