Flutter Engine
The Flutter Engine
SkMetalViewBridge.h
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3#ifndef SkMetalViewBridge_DEFINED
4#define SkMetalViewBridge_DEFINED
5
7
8#import <MetalKit/MetalKit.h>
9
10#include <memory>
11
13class SkSurface;
14template <typename T> class sk_sp;
15
17
18GrContextHolder SkMetalDeviceToGrContext(id<MTLDevice>, id<MTLCommandQueue>);
19
20void SkMtkViewConfigForSkia(MTKView*);
21
22#endif // SkMetalViewBridge_DEFINED
std::unique_ptr< GrDirectContext, GrContextRelease > GrContextHolder
void SkMtkViewConfigForSkia(MTKView *)
sk_sp< SkSurface > SkMtkViewToSurface(MTKView *, GrRecordingContext *)
GrContextHolder SkMetalDeviceToGrContext(id< MTLDevice >, id< MTLCommandQueue >)