2nd-half clone of https://codereview.chromium.org/
26273006/
BUG=chromium:295895
Review URL: https://codereview.chromium.org/
26973006
git-svn-id: http://skia.googlecode.com/svn/trunk@11825
2bbb7eff-a529-9590-31e7-
b0007b416f81
}
}
fScaledBitmap.lockPixels(); // just 'cause the cache made a copy :(
+ if (!fScaledBitmap.getPixels()) {
+ // TODO: find out how this can happen, and add a unittest to exercise
+ // inspired by BUG=chromium:295895
+ return false;
+ }
fBitmap = &fScaledBitmap;
return true;
}