Return null if clipshader fails

This allows us to try skvm blitter, which might succeed with
the clipshader.

Change-Id: I771d4d389ae59ffd76e742cd223798f17582fedc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/383096
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2021-03-10 15:46:15 -05:00 committed by Skia Commit-Bot
parent be54c66cdd
commit d0ce14942b

View File

@ -172,6 +172,8 @@ SkBlitter* SkRasterPipelineBlitter::Create(const SkPixmap& dst,
clipP->append(SkRasterPipeline::store_src_a, storage->fA);
blitter->fClipShaderBuffer = storage->fA;
is_constant = false;
} else {
return nullptr;
}
}