aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/gpu/SkGpuDevice.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 4e3baa3653..c8e34408ae 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -610,11 +610,7 @@ inline bool skPaint2GrPaintShader(SkGpuDevice* dev,
break;
case SkShader::kLinear_BitmapType:
sampler->setCustomStage(SkNEW_ARGS(GrLinearGradient, (texture)))->unref();
- if (skPaint.isFilterBitmap()) {
- sampler->setFilter(GrSamplerState::kBilinear_Filter);
- } else {
- sampler->setFilter(GrSamplerState::kNearest_Filter);
- }
+ sampler->setFilter(GrSamplerState::kBilinear_Filter);
break;
default:
if (skPaint.isFilterBitmap()) {