Index: src/core/SkBitmapProcState.cpp |
=================================================================== |
--- src/core/SkBitmapProcState.cpp (revision 11394) |
+++ src/core/SkBitmapProcState.cpp (working copy) |
@@ -159,6 +159,9 @@ |
fScaledBitmap); |
} |
fScaledBitmap.lockPixels(); // wonder if Resize() should have locked this |
+ if (!fScaledBitmap.getPixel()) { |
+ return false; |
+ } |
fBitmap = &fScaledBitmap; |
// set the inv matrix type to translate-only; |
@@ -293,6 +296,9 @@ |
} |
} |
fScaledBitmap.lockPixels(); // just 'cause the cache made a copy :( |
+ if (!fScaledBitmap.getPixel()) { |
+ return false; |
+ } |
fBitmap = &fScaledBitmap; |
return true; |
} |