7#ifndef MetalWindowContext_DEFINED
8#define MetalWindowContext_DEFINED
17#import <Metal/Metal.h>
18#import <QuartzCore/CAMetalLayer.h>
virtual bool onInitializeContext()=0
CAMetalLayer * fMetalLayer
void setDisplayParams(const DisplayParams ¶ms) override
virtual void onDestroyContext()=0
MetalWindowContext(const DisplayParams &)
sk_cfp< id< MTLDevice > > fDevice
sk_cfp< id< MTLCommandQueue > > fQueue
GrMTLHandle fDrawableHandle
void onSwapBuffers() override
sk_sp< SkSurface > getBackbufferSurface() override
const EmbeddedViewParams * params