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

Unified Diff: dm/DMSrcSink.cpp

Issue 1301523005: Update skia to test with libpng to 1.6.10 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Trybots Created 5 years, 4 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
Index: dm/DMSrcSink.cpp
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index f766b49c79395acceaba2dbff4cec8794e46f43f..14e6034c12badc2415767b43596b5ece85772559 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -81,6 +81,7 @@ bool CodecSrc::veto(SinkFlags flags) const {
}
Error CodecSrc::draw(SkCanvas* canvas) const {
+ SkDebugf("\nCodec %s\n", fPath.c_str());
scroggo 2015/08/26 21:53:32 I'm guessing we do not want these print statements
SkAutoTUnref<SkData> encoded(SkData::NewFromFileName(fPath.c_str()));
if (!encoded) {
return SkStringPrintf("Couldn't read %s.", fPath.c_str());
@@ -495,6 +496,7 @@ Error ImageSrc::draw(SkCanvas* canvas) const {
}
const SkColorType dstColorType = canvas->imageInfo().colorType();
if (fDivisor == 0) {
+ SkDebugf("\nImage %s\n", fPath.c_str());
// Decode the full image.
SkBitmap bitmap;
if (!SkImageDecoder::DecodeMemory(encoded->data(), encoded->size(), &bitmap,
@@ -509,6 +511,7 @@ Error ImageSrc::draw(SkCanvas* canvas) const {
canvas->drawBitmap(bitmap, 0,0);
return "";
}
+ SkDebugf("\nSubset %s\n", fPath.c_str());
// Decode subsets. This is a little involved.
SkAutoTDelete<SkMemoryStream> stream(new SkMemoryStream(encoded));
SkAutoTDelete<SkImageDecoder> decoder(SkImageDecoder::Factory(stream.get()));

Powered by Google App Engine
This is Rietveld 408576698