Chromium Code Reviews| Index: src/core/SkBitmap.cpp |
| diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
| index e76ee02284c0163d4c982d9d0f01dc82f712a4e8..96d683c0e2592765351bcf5e9912085b660093a6 100644 |
| --- a/src/core/SkBitmap.cpp |
| +++ b/src/core/SkBitmap.cpp |
| @@ -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); |
| } |