Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: tools/SkBitmapRegionDecoderInterface.cpp

Issue 1387183003: Remove superfluous error messages from nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@icoFormat
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/SkBitmapRegionCanvas.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/SkBitmapRegionDecoderInterface.cpp
diff --git a/tools/SkBitmapRegionDecoderInterface.cpp b/tools/SkBitmapRegionDecoderInterface.cpp
index 5c769d676e4377da9ee1f34e1aeb06d76c48c9f0..d6afca72046683c537d0850a063792fa9c5542b9 100644
--- a/tools/SkBitmapRegionDecoderInterface.cpp
+++ b/tools/SkBitmapRegionDecoderInterface.cpp
@@ -18,11 +18,9 @@ SkBitmapRegionDecoderInterface* SkBitmapRegionDecoderInterface::CreateBitmapRegi
SkImageDecoder* decoder = SkImageDecoder::Factory(stream);
int width, height;
if (nullptr == decoder) {
- SkDebugf("Error: Could not create image decoder.\n");
return nullptr;
}
if (!decoder->buildTileIndex(stream, &width, &height)) {
- SkDebugf("Error: Could not build tile index.\n");
delete decoder;
return nullptr;
}
@@ -31,7 +29,6 @@ SkBitmapRegionDecoderInterface* SkBitmapRegionDecoderInterface::CreateBitmapRegi
case kCanvas_Strategy: {
SkCodec* decoder = SkCodec::NewFromStream(stream);
if (nullptr == decoder) {
- SkDebugf("Error: Failed to create decoder.\n");
return nullptr;
}
switch (decoder->getScanlineOrder()) {
@@ -39,7 +36,6 @@ SkBitmapRegionDecoderInterface* SkBitmapRegionDecoderInterface::CreateBitmapRegi
case SkCodec::kNone_SkScanlineOrder:
break;
default:
- SkDebugf("Error: Scanline ordering not supported.\n");
return nullptr;
}
return new SkBitmapRegionCanvas(decoder);
« no previous file with comments | « tools/SkBitmapRegionCanvas.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698