BUG=

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9000 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
scroggo@google.com 2013-05-03 20:39:22 +00:00
Родитель cb3c8d7e6a
Коммит 0018f75f2f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -183,7 +183,7 @@ static void decodeFileAndWrite(const char srcPath[], const SkString* writePath)
gSuccessfulDecodes.push_back().printf("%s [%d %d]", srcPath, bitmap.width(), bitmap.height());
if (FLAGS_testSubsetDecoding) {
bool couldRewind = stream.rewind();
SkDEBUGCODE(bool couldRewind =) stream.rewind();
SkASSERT(couldRewind);
int width, height;
// Build the tile index for decoding subsets. If the image is 1x1, skip subset
@ -215,7 +215,7 @@ static void decodeFileAndWrite(const char srcPath[], const SkString* writePath)
if (bitmap.extractSubset(&extractedSubset, rect)) {
suffix.printf("_%s_extracted.png", subsetDim.c_str());
make_outname(&outPath, writePath->c_str(), srcPath, suffix.c_str());
success = write_bitmap(outPath.c_str(), &extractedSubset);
SkDEBUGCODE(success =) write_bitmap(outPath.c_str(), &extractedSubset);
SkASSERT(success);
}
}