7#ifndef GraphiteMetalWindowContext_DEFINED
8#define GraphiteMetalWindowContext_DEFINED
15#import <Metal/Metal.h>
16#import <QuartzCore/CAMetalLayer.h>
30 void activate(
bool isActive)
override;
sk_sp< SkSurface > getBackbufferSurface() override
GraphiteMetalWindowContext(const DisplayParams &)
CFTypeRef fDrawableHandle
void onSwapBuffers() override
virtual bool onInitializeContext()=0
void setDisplayParams(const DisplayParams ¶ms) override
virtual void onDestroyContext()=0
sk_cfp< id< MTLCommandQueue > > fQueue
sk_cfp< id< MTLDevice > > fDevice
void activate(bool isActive) override
CAMetalLayer * fMetalLayer
const EmbeddedViewParams * params