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

Unified Diff: dm/DM.cpp

Issue 1771993002: dm: log log (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index f2c74e30725cdbff7f274c8fc2bc0e4c27632af7..6830ceeef776d7e0cece1381960f56590b829b51 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -987,6 +987,13 @@ struct Task {
start(task.sink.tag.c_str(), task.src.tag.c_str(),
task.src.options.c_str(), name.c_str());
Error err = task.sink->draw(*task.src, &bitmap, &stream, &log);
+ if (!log.isEmpty()) {
+ SkDebugf("%s %s %s %s:\n%s\n", task.sink.tag.c_str()
+ , task.src.tag.c_str()
+ , task.src.options.c_str()
+ , name.c_str()
+ , log.c_str());
+ }
if (!err.isEmpty()) {
if (err.isFatal()) {
fail(SkStringPrintf("%s %s %s %s: %s",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698