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:
parent
7ce175117f
commit
3a61906e94
@ -257,8 +257,14 @@ sk_sp<SkShader> SkPictureShader::refBitmapShader(const SkMatrix& viewMatrix,
|
||||
#ifdef SK_SUPPORT_LEGACY_INHERITED_PICTURE_SHADER_FILTER
|
||||
tileShader = SkImage_makeShaderImplicitFilterQuality(tileImage.get(), fTmx, fTmy, nullptr);
|
||||
#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);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user