skia2/tools/sk_app/mac
Ben Wagner fa8b5e4502 Add support for retina displays to sk_app.
The macOS view system is in "big pixel" units, so translate these
into "physical pixel" units.

To compensate, add sk_app::Window::scaleFactor() which returns the
scale factor. The viewer app is modified to apply the inverse of
this scale factor to the current zoom level.

Change-Id: I4fac066a230c87793fc5a0e5a582d60d25e46e7b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/361558
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2021-01-29 17:33:48 +00:00
..
DawnMTLWindowContext_mac.mm Remove the dependency on Dawn's SwapChainUtils. 2020-04-09 20:31:30 +00:00
GLWindowContext_mac.mm Add support for retina displays to sk_app. 2021-01-29 17:33:48 +00:00
main_mac.mm Enable ClangTidy check modernize-use-nullptr. 2020-08-14 16:14:30 +00:00
MetalWindowContext_mac.mm Add support for retina displays to sk_app. 2021-01-29 17:33:48 +00:00
RasterWindowContext_mac.mm Add support for retina displays to sk_app. 2021-01-29 17:33:48 +00:00
Window_mac.h Add support for retina displays to sk_app. 2021-01-29 17:33:48 +00:00
Window_mac.mm Add support for retina displays to sk_app. 2021-01-29 17:33:48 +00:00
WindowContextFactory_mac.h Add support for retina displays to sk_app. 2021-01-29 17:33:48 +00:00