if fBitmap is still NULL, return false
git-svn-id: http://skia.googlecode.com/svn/trunk@11908 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
8c908273bb
commit
c294a97842
@ -343,8 +343,11 @@ bool SkBitmapProcState::chooseProcs(const SkMatrix& inv, const SkPaint& paint) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
SkASSERT(fBitmap);
|
||||
// The above logic should have always assigned fBitmap, but in case it
|
||||
// didn't, we check for that now...
|
||||
if (NULL == fBitmap) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool trivialMatrix = (fInvMatrix.getType() & ~SkMatrix::kTranslate_Mask) == 0;
|
||||
bool clampClamp = SkShader::kClamp_TileMode == fTileModeX &&
|
||||
|
Loading…
Reference in New Issue
Block a user