call endContext() if we have to return false from setContext(), to keep the
debugging fInSetContext flag up-to-date. git-svn-id: http://skia.googlecode.com/svn/trunk@7175 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
9b64cac7c8
commit
e7591bb0c1
@ -86,11 +86,13 @@ bool SkBitmapProcShader::setContext(const SkBitmap& device,
|
||||
fState.fOrigBitmap.lockPixels();
|
||||
if (!fState.fOrigBitmap.getTexture() && !fState.fOrigBitmap.readyToDraw()) {
|
||||
fState.fOrigBitmap.unlockPixels();
|
||||
this->INHERITED::endContext();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!fState.chooseProcs(this->getTotalInverse(), paint)) {
|
||||
fState.fOrigBitmap.unlockPixels();
|
||||
this->INHERITED::endContext();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user