Index: src/core/SkLightingShader.cpp |
diff --git a/src/core/SkLightingShader.cpp b/src/core/SkLightingShader.cpp |
index a2ce52fe28764b2750546faf09ae96194cbc2a85..aaf29fcf3a344f0bbf8f909f6768bdfb4053ec68 100644 |
--- a/src/core/SkLightingShader.cpp |
+++ b/src/core/SkLightingShader.cpp |
@@ -677,7 +677,8 @@ SkShader::Context* SkLightingShaderImpl::onCreateContext(const ContextRec& rec, |
void* diffuseStateStorage = (char*)storage + sizeof(LightingShaderContext); |
SkBitmapProcState* diffuseState = new (diffuseStateStorage) SkBitmapProcState(fDiffuseMap, |
- SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); |
+ SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, |
+ SkMipMap::DeduceTreatment(rec)); |
SkASSERT(diffuseState); |
if (!diffuseState->setup(diffTotalInv, *rec.fPaint)) { |
diffuseState->~SkBitmapProcState(); |
@@ -686,7 +687,8 @@ SkShader::Context* SkLightingShaderImpl::onCreateContext(const ContextRec& rec, |
void* normalStateStorage = (char*)storage + sizeof(LightingShaderContext) + sizeof(SkBitmapProcState); |
SkBitmapProcState* normalState = new (normalStateStorage) SkBitmapProcState(fNormalMap, |
- SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); |
+ SkShader::kClamp_TileMode, SkShader::kClamp_TileMode, |
+ SkMipMap::DeduceTreatment(rec)); |
SkASSERT(normalState); |
if (!normalState->setup(normTotalInv, *rec.fPaint)) { |
diffuseState->~SkBitmapProcState(); |