Display text blob bounds in the debugger.
authorfmalita <fmalita@chromium.org>
Tue, 9 Dec 2014 13:28:20 +0000 (05:28 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 9 Dec 2014 13:28:20 +0000 (05:28 -0800)
Also fix YPOS.

R=robertphillips@google.com,jbroman@chromium.org

Review URL: https://codereview.chromium.org/786083002

src/utils/debugger/SkDrawCommand.cpp

index 142c4a4..08a9718 100644 (file)
@@ -653,7 +653,8 @@ SkDrawTextBlobCommand::SkDrawTextBlobCommand(const SkTextBlob* blob, SkScalar x,
 
     // FIXME: push blob info
     fInfo.push(SkObjectParser::ScalarToString(x, "XPOS: "));
-    fInfo.push(SkObjectParser::ScalarToString(x, "YPOS: "));
+    fInfo.push(SkObjectParser::ScalarToString(y, "YPOS: "));
+    fInfo.push(SkObjectParser::RectToString(fBlob->bounds(), "Bounds: "));
     fInfo.push(SkObjectParser::PaintToString(paint));
 }