Switch back to non-SkSL matrix color filter for all clients
Chrome never made the switch, and if we want to support stripping SkSL in CPU builds, we'll want to backtrack here a bit. Change-Id: I46aba6d0bddd09f6c37a90d9b996e3e28ce66c68 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/419157 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
491282486e
commit
b2b5f2beaa
@ -156,7 +156,7 @@ static sk_sp<SkColorFilter> MakeMatrix(const float array[20],
|
||||
if (!sk_floats_are_finite(array, 20)) {
|
||||
return nullptr;
|
||||
}
|
||||
#if defined(SK_SUPPORT_LEGACY_RUNTIME_EFFECTS)
|
||||
#if 1
|
||||
return sk_make_sp<SkColorFilter_Matrix>(array, domain);
|
||||
#else
|
||||
const bool alphaUnchanged = SkScalarNearlyEqual(array[15], 0)
|
||||
|
Loading…
Reference in New Issue
Block a user