Allow chrome to be nearest until it can rebaseline

No changes expected -- only if chrome decides to opt into nearest

Change-Id: Ie493b6c814f3e1e603a116e59a777e5f6b16b370
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/353358
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2021-01-12 17:22:07 -05:00 committed by Skia Commit-Bot
parent 7ce175117f
commit 3a61906e94

View File

@ -257,8 +257,14 @@ sk_sp<SkShader> SkPictureShader::refBitmapShader(const SkMatrix& viewMatrix,
#ifdef SK_SUPPORT_LEGACY_INHERITED_PICTURE_SHADER_FILTER #ifdef SK_SUPPORT_LEGACY_INHERITED_PICTURE_SHADER_FILTER
tileShader = SkImage_makeShaderImplicitFilterQuality(tileImage.get(), fTmx, fTmy, nullptr); tileShader = SkImage_makeShaderImplicitFilterQuality(tileImage.get(), fTmx, fTmy, nullptr);
#else #else
tileShader = tileImage->makeShader(fTmx, fTmy, SkSamplingOptions(SkFilterMode::kLinear,
SkMipmapMode::kNone), #ifdef SK_SUPPORT_NEAREST_PICTURESHADER_POSTFILTER
SkFilterMode filter = SkFilterMode::kNearest;
#else
SkFilterMode filter = SkFilterMode::kLinear;
#endif
tileShader = tileImage->makeShader(fTmx, fTmy,
SkSamplingOptions(filter, SkMipmapMode::kNone),
nullptr); nullptr);
#endif #endif