Viewer: apply same transform as slide to dimensions display.
Change-Id: Ic5192b072c98617dee85f28f8f4214c7a805a1fd Reviewed-on: https://skia-review.googlesource.com/c/skia/+/397318 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
parent
c81ad2d893
commit
b5ea786dbd
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user