Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 2555b41c515637b5c1f62bba4029ca2d74399e86..1cded90080257a1a3cd835f11b5fb6e8d4a9fc65 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1423,7 +1423,9 @@ void SkGpuDevice::internalDrawBitmap(const SkBitmap& bitmap, |
GrTextureDomain::kClamp_Mode, |
params.filterMode())); |
} else if (bicubic) { |
- effect.reset(GrBicubicEffect::Create(texture, SkMatrix::I(), params)); |
+ SkASSERT(GrTextureParams::kNone_FilterMode == params.filterMode()); |
+ SkShader::TileMode tileModes[2] = { params.getTileModeX(), params.getTileModeY() }; |
+ effect.reset(GrBicubicEffect::Create(texture, SkMatrix::I(), tileModes)); |
} else { |
effect.reset(GrSimpleTextureEffect::Create(texture, SkMatrix::I(), params)); |
} |