sk_sp< SkSurface > getBackbufferSurface() override
virtual void onDestroyContext()=0
virtual bool onInitializeContext()=0
GraphiteDawnWindowContext(const DisplayParams &, wgpu::TextureFormat swapChainFormat)
void setDisplayParams(const DisplayParams ¶ms) override
wgpu::TextureFormat fSwapChainFormat
std::unique_ptr< dawn::native::Instance > fInstance
wgpu::Device createDevice(wgpu::BackendType type)
~GraphiteDawnWindowContext() override
bool isGpuContext() override
wgpu::SwapChain createSwapChain()
void initializeContext(int width, int height)
virtual GrSurfaceOrigin getRTOrigin() const