Fix a unintended shader change in GrTextureEffect

nearest + repeat doesn't need to operate in unnorm coords.

Restores behavior previos to:
https://skia-review.googlesource.com/c/skia/+/297189y

Change-Id: Id78fb1a1526e0703ed17a3c46082209447cac2dd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297464
Auto-Submit: Brian Salomon <bsalomon@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
This commit is contained in:
Brian Salomon 2020-06-18 14:41:53 -04:00 committed by Skia Commit-Bot
parent 5ed3c11a80
commit d610c75156

View File

@ -406,7 +406,7 @@ GrGLSLFragmentProcessor* GrTextureEffect::onCreateGLSLInstance() const {
switch (m) {
case ShaderMode::kNone: return false;
case ShaderMode::kClamp: return false;
case ShaderMode::kRepeatNearest: return true;
case ShaderMode::kRepeatNearest: return false;
case ShaderMode::kRepeatBilerp: return true;
case ShaderMode::kRepeatMipMap: return true;
case ShaderMode::kMirrorRepeat: return false;