Index: src/utils/debugger/SkDrawCommand.cpp |
diff --git a/src/utils/debugger/SkDrawCommand.cpp b/src/utils/debugger/SkDrawCommand.cpp |
index 3a073962ccacbbeaf72940b14233b13798b014a4..b9742c35352e81a240f28c528faae75b6a26df7f 100644 |
--- a/src/utils/debugger/SkDrawCommand.cpp |
+++ b/src/utils/debugger/SkDrawCommand.cpp |
@@ -666,6 +666,20 @@ void SkDrawTextBlobCommand::execute(SkCanvas* canvas) { |
canvas->drawTextBlob(fBlob, fXPos, fYPos, fPaint); |
} |
+bool SkDrawTextBlobCommand::render(SkCanvas* canvas) const { |
+ canvas->clear(SK_ColorWHITE); |
+ canvas->save(); |
+ |
+ SkRect bounds = fBlob->bounds().makeOffset(fXPos, fYPos); |
+ xlate_and_scale_to_bounds(canvas, bounds); |
+ |
+ canvas->drawTextBlob(fBlob.get(), fXPos, fYPos, fPaint); |
+ |
+ canvas->restore(); |
+ |
+ return true; |
+} |
+ |
SkDrawRectCommand::SkDrawRectCommand(const SkRect& rect, const SkPaint& paint) |
: INHERITED(DRAW_RECT) { |
fRect = rect; |