[PDF] PDF rasterizers fed garbage data in release mode.
authorvandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 9 Dec 2013 23:22:15 +0000 (23:22 +0000)
committervandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 9 Dec 2013 23:22:15 +0000 (23:22 +0000)
BUG=skia:1885
TBR=epoger@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@12589 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/gmmain.cpp

index c4283a84226f5e866a331ec9fd8f2d7d3c032736..904c210ba6d5cc4f605f29fd39abe04b0412f785 100644 (file)
@@ -1076,7 +1076,7 @@ public:
                 if (!(gm->getFlags() & GM::kSkipPDFRasterization_Flag)) {
                     for (int i = 0; i < pdfRasterizers.count(); i++) {
                         SkBitmap pdfBitmap;
-                        SkASSERT(documentStream->rewind());
+                        documentStream->rewind();
                         bool success = (*pdfRasterizers[i]->fRasterizerFunction)(
                                 documentStream.get(), &pdfBitmap);
                         if (!success) {