[SkDebugger] Show detailed drawImage info

R=robert.phillips@google.com

Review URL: https://codereview.chromium.org/1409393007
This commit is contained in:
fmalita 2015-10-29 12:13:48 -07:00 committed by Commit bot
parent 687378229a
commit 7361bf096e

View File

@ -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));
}
}