skia2/tools/sk_app
Jim Van Verth d063e8b6f1 Revise Mac windowing and context creation.
Windowing and events:
* Use a NSTrackingArea to only capture mouse events within the view.
* Use ViewDelegate to track events rather than pulling them out of the
  event pump.
* Sets up the autoreleasepool correctly to clear out old events

Context creation:
* Don't use a subview for OpenGL (it's not necessary).
* For Metal, use a CAMetalLayer rather than MTKView.
* Add vsync support to Metal.

Bug: skia:8737
Change-Id: I8ea5cc865df65f8dc2fef47082bf6a4d1657cf03
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/213672
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2019-05-16 16:46:11 +00:00
..
android rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
ios rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
mac Revise Mac windowing and context creation. 2019-05-16 16:46:11 +00:00
unix rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
win rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
Application.h Remove SampleApp and convert HelloWorld to sk_app 2017-11-21 18:37:19 +00:00
CommandSet.cpp Use SkTextEncoding enum instead of macros. 2019-05-07 20:54:16 +00:00
CommandSet.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
DisplayParams.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
GLWindowContext.cpp Revise Mac windowing and context creation. 2019-05-16 16:46:11 +00:00
GLWindowContext.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
MetalWindowContext.h Revise Mac windowing and context creation. 2019-05-16 16:46:11 +00:00
MetalWindowContext.mm Revise Mac windowing and context creation. 2019-05-16 16:46:11 +00:00
RasterWindowContext.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
VulkanWindowContext.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
VulkanWindowContext.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
Window.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
Window.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
WindowContext.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00