aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-06-24 20:32:27 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-24 20:32:33 +0000
commitcbbb58af7a1c9d00ce3408fd0964ec00438d42b7 (patch)
treea42689274894a457257ac1b067edb7ebe3df8b1c
parent4220a929f881de79420eb3551653848678666c13 (diff)
Revert "speculative fix for chrome roll"
This reverts commit 4220a929f881de79420eb3551653848678666c13. Reason for revert: did not seem to help chrome Original change's description: > speculative fix for chrome roll > > Bug: skia: > Change-Id: Ib1d7d0839093a4ced89f591bc329bbd3adc635f8 > Reviewed-on: https://skia-review.googlesource.com/20768 > Reviewed-by: Mike Reed <reed@google.com> > Commit-Queue: Mike Reed <reed@google.com> TBR=reed@google.com Change-Id: I1906664ebf4aae8bc61bd410a74231bce3f4b562 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia: Reviewed-on: https://skia-review.googlesource.com/20782 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
-rw-r--r--src/shaders/SkImageShader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shaders/SkImageShader.cpp b/src/shaders/SkImageShader.cpp
index d463ca05ca..a19781262c 100644
--- a/src/shaders/SkImageShader.cpp
+++ b/src/shaders/SkImageShader.cpp
@@ -28,8 +28,7 @@ static SkShader::TileMode optimize(SkShader::TileMode tm, int dimension) {
// for transforming to clamp.
return tm;
#else
-// return dimension == 1 ? SkShader::kClamp_TileMode : tm;
- return tm; // does this fix chrome?
+ return dimension == 1 ? SkShader::kClamp_TileMode : tm;
#endif
}