fix clip shader + skvm

The SkVM bots set this define, overriding the check at head.

Change-Id: Icbd7cb8c06ccba15a60855aefc92a43d624f51ad
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/276224
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
Mike Klein 2020-03-10 14:53:30 -05:00 committed by Skia Commit-Bot
parent 5f6b41e6d8
commit 520c5fd7b2

View File

@ -740,11 +740,11 @@ SkBlitter* SkBlitter::Choose(const SkPixmap& device,
paint.writable()->setDither(false);
}
bool try_skvm_blitter = gUseSkVMBlitter && !clipShader;
bool try_skvm_blitter = gUseSkVMBlitter;
#if defined(SK_USE_SKVM_BLITTER)
try_skvm_blitter = true;
#endif
if (try_skvm_blitter) {
if (try_skvm_blitter && !clipShader) {
if (auto blitter = SkCreateSkVMBlitter(device, *paint, matrix, alloc)) {
return blitter;
}