fix android build

git-svn-id: http://skia.googlecode.com/svn/trunk@10369 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
humper@google.com 2013-07-25 19:09:47 +00:00
parent b86add1ad3
commit f9ed6fe6c5
2 changed files with 16 additions and 0 deletions

View File

@ -373,6 +373,14 @@ GrEffectRef* SkBitmapProcShader::asNewEffect(GrContext* context, const SkPaint&
"MIPMaps.");
textureFilterMode = GrTextureParams::kMipMap_FilterMode;
break;
default:
SkErrorInternals::SetError( kInvalidPaint_SkError,
"Sorry, I don't understand the filtering "
"mode you asked for. Falling back to "
"MIPMaps.");
textureFilterMode = GrTextureParams::kMipMap_FilterMode;
break;
}
GrTextureParams params(tm, textureFilterMode);
GrTexture* texture = GrLockAndRefCachedBitmapTexture(context, fRawBitmap, &params);

View File

@ -1154,6 +1154,14 @@ void SkGpuDevice::drawBitmapCommon(const SkDraw& draw,
"MIPMaps.");
textureFilterMode = GrTextureParams::kMipMap_FilterMode;
break;
default:
SkErrorInternals::SetError( kInvalidPaint_SkError,
"Sorry, I don't understand the filtering "
"mode you asked for. Falling back to "
"MIPMaps.");
textureFilterMode = GrTextureParams::kMipMap_FilterMode;
break;
}
params.setFilterMode(textureFilterMode);