fix test for empty config

handle empty setconfig

BUG=skia:

Review URL: https://codereview.chromium.org/159533002

git-svn-id: http://skia.googlecode.com/svn/trunk@13394 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
mike@reedtribe.org 2014-02-11 03:10:54 +00:00
parent 8ed6443e6c
commit b53317c6fa

View File

@ -263,7 +263,7 @@ bool SkBitmap::setConfig(const SkImageInfo& info, size_t rowBytes) {
return reset_return_false(this);
}
if (info.isEmpty()) {
if (info.width() < 0 || info.height() < 0) {
return reset_return_false(this);
}