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

Unified Diff: src/utils/debugger/SkDrawCommand.cpp

Issue 1409393007: [SkDebugger] Show detailed drawImage info (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/debugger/SkDrawCommand.cpp
diff --git a/src/utils/debugger/SkDrawCommand.cpp b/src/utils/debugger/SkDrawCommand.cpp
index 99c120bb7f6e3e08611384433cd75ec30b8b6324..8be6de9b28e1dd9179fdc5aba19993bb92ecfa27 100644
--- a/src/utils/debugger/SkDrawCommand.cpp
+++ b/src/utils/debugger/SkDrawCommand.cpp
@@ -387,8 +387,13 @@ SkDrawImageCommand::SkDrawImageCommand(const SkImage* image, SkScalar left, SkSc
, fLeft(left)
, fTop(top) {
+ fInfo.push(SkObjectParser::ImageToString(image));
+ fInfo.push(SkObjectParser::ScalarToString(left, "Left: "));
+ fInfo.push(SkObjectParser::ScalarToString(top, "Top: "));
+
if (paint) {
fPaint.set(*paint);
+ fInfo.push(SkObjectParser::PaintToString(*paint));
}
}
« 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