Pixel zoomer in viewer
Made it a separate ImGui window (rather than part of the debug window).
Bring it up with 'z'. Draggable/resizable. Variable zoom scale. Enjoy.
BUG=skia:
Change-Id: I949ab398126c892c8d353aaebcc8403765f42841
Reviewed-on: https://skia-review.googlesource.com/8357
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/tools/viewer/Viewer.h b/tools/viewer/Viewer.h
index 9499c6c..74d3f06 100644
--- a/tools/viewer/Viewer.h
+++ b/tools/viewer/Viewer.h
@@ -60,10 +60,13 @@
bool fDisplayStats;
bool fRefresh; // whether to continuously refresh for measuring render time
- sk_sp<SkImage> fImGuiFontImage;
+ SkPaint fImGuiFontPaint;
bool fShowImGuiDebugWindow;
bool fShowImGuiTestWindow;
+ bool fShowZoomWindow;
+ sk_sp<SkImage> fLastImage;
+
sk_app::Window::BackendType fBackendType;
// Color properties for slide rendering