Flutter Engine
The Flutter Engine
third_party
skia
tools
skottie_ios_app
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
6
#include "
tools/skottie_ios_app/GrContextHolder.h
"
7
8
#import <MetalKit/MetalKit.h>
9
10
#include <memory>
11
12
class
GrRecordingContext
;
13
class
SkSurface
;
14
template
<
typename
T>
class
sk_sp
;
15
16
sk_sp<SkSurface>
SkMtkViewToSurface
(MTKView*,
GrRecordingContext
*);
17
18
GrContextHolder
SkMetalDeviceToGrContext
(id<MTLDevice>, id<MTLCommandQueue>);
19
20
void
SkMtkViewConfigForSkia
(MTKView*);
21
22
#endif
// SkMetalViewBridge_DEFINED
GrContextHolder.h
GrContextHolder
std::unique_ptr< GrDirectContext, GrContextRelease > GrContextHolder
Definition:
GrContextHolder.h:12
SkMtkViewConfigForSkia
void SkMtkViewConfigForSkia(MTKView *)
Definition:
SkMetalViewBridge.mm:50
SkMtkViewToSurface
sk_sp< SkSurface > SkMtkViewToSurface(MTKView *, GrRecordingContext *)
Definition:
SkMetalViewBridge.mm:20
SkMetalDeviceToGrContext
GrContextHolder SkMetalDeviceToGrContext(id< MTLDevice >, id< MTLCommandQueue >)
Definition:
SkMetalViewBridge.mm:42
GrRecordingContext
Definition:
GrRecordingContext.h:42
SkSurface
Definition:
SkSurface.h:161
sk_sp
Definition:
SkRefCnt.h:220
Generated on Sun Jun 23 2024 21:56:51 for Flutter Engine by
1.9.4