fix android build
git-svn-id: http://skia.googlecode.com/svn/trunk@10369 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
b86add1ad3
commit
f9ed6fe6c5
@ -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, ¶ms);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user