diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp index 6c433400b8..9a857211e4 100644 --- a/tools/viewer/Viewer.cpp +++ b/tools/viewer/Viewer.cpp @@ -1545,10 +1545,13 @@ void Viewer::drawSlide(SkSurface* surface) { } if (fShowSlideDimensions) { + SkCanvas* canvas = surface->getCanvas(); + SkAutoCanvasRestore acr(canvas, true); + canvas->concat(this->computeMatrix()); SkRect r = SkRect::Make(fSlides[fCurrentSlide]->getDimensions()); SkPaint paint; paint.setColor(0x40FFFF00); - surface->getCanvas()->drawRect(r, paint); + canvas->drawRect(r, paint); } }