Is your feature request related to a problem? Please describe.
We need to add the metal APIs available on Apple hardware.
Looking at the APIs, it appears there are 2 ways to use Metal, from a CAMetalLayer:
https://github.com/google/skia/blob/chrome/m85/include/core/SkSurface.h#L304
And a MTKView:
https://github.com/google/skia/blob/chrome/m85/include/core/SkSurface.h#L331
The CAMetalLayer part was added in m80, and MTKView (sadly) in m81. Just one away.
I will bind the layer one and see how that goes. I want to get m84 /m85 finished soon (#1321) and then we can add the view one.
Will this enable screen drawing using the Display P3 color space? The current OpenGL view only seems to support sRGB.
Most helpful comment
Looking at the APIs, it appears there are 2 ways to use Metal, from a
CAMetalLayer:https://github.com/google/skia/blob/chrome/m85/include/core/SkSurface.h#L304
And a
MTKView:https://github.com/google/skia/blob/chrome/m85/include/core/SkSurface.h#L331
The
CAMetalLayerpart was added in m80, andMTKView(sadly) in m81. Just one away.I will bind the layer one and see how that goes. I want to get m84 /m85 finished soon (#1321) and then we can add the view one.