| Index: tools/skimage_main.cpp
|
| diff --git a/tools/skimage_main.cpp b/tools/skimage_main.cpp
|
| index a488aa7e2f0bf25e6cf716ae8ff9b3c6eb92cf31..cd58eacd59fe68dda6c22c087f90d4aa5550ef6a 100644
|
| --- a/tools/skimage_main.cpp
|
| +++ b/tools/skimage_main.cpp
|
| @@ -587,7 +587,8 @@ static void decodeFileAndWrite(const char srcPath[], const SkString* writePath)
|
| // Build the tile index for decoding subsets. If the image is 1x1, skip subset
|
| // decoding since there are no smaller subsets.
|
| if (codec->buildTileIndex(&stream, &width, &height) && width > 1 && height > 1) {
|
| - SkASSERT(bitmap.width() == width && bitmap.height() == height);
|
| + SkASSERT((bitmap.width() == width && bitmap.height() == height)
|
| + || FLAGS_sampleSize != 1);
|
| // Call decodeSubset multiple times:
|
| SkRandom rand(0);
|
| for (int i = 0; i < 5; i++) {
|
|
|