Flutter iOS Embedder
FlutterTextureRegistryRelay.mm
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#import "
flutter/shell/platform/darwin/ios/framework/Source/FlutterTextureRegistryRelay.h
"
6
7
#include "flutter/fml/logging.h"
8
9
@implementation
FlutterTextureRegistryRelay
: NSObject
10
11
#pragma mark - FlutterTextureRegistry
12
13
- (instancetype)initWithParent:(NSObject<
FlutterTextureRegistry
>*)parent {
14
if
(
self
= [super init]) {
15
_parent =
parent
;
16
}
17
return
self
;
18
}
19
20
- (int64_t)registerTexture:(NSObject<
FlutterTexture
>*)texture {
21
if
(!
self
.
parent
) {
22
FML_LOG(WARNING) <<
"Using on an empty registry."
;
23
return
0;
24
}
25
return
[
self
.parent registerTexture:texture];
26
}
27
28
- (void)textureFrameAvailable:(int64_t)textureId {
29
if
(!
self
.
parent
) {
30
FML_LOG(WARNING) <<
"Using on an empty registry."
;
31
}
32
return
[
self
.parent textureFrameAvailable:textureId];
33
}
34
35
- (void)unregisterTexture:(int64_t)textureId {
36
if
(!
self
.
parent
) {
37
FML_LOG(WARNING) <<
"Using on an empty registry."
;
38
}
39
return
[
self
.parent unregisterTexture:textureId];
40
}
41
42
@end
FlutterTextureRegistryRelay::parent
NSObject< FlutterTextureRegistry > * parent
Definition:
FlutterTextureRegistryRelay.h:25
FlutterTextureRegistry-p
Definition:
FlutterTexture.h:38
FlutterTextureRegistryRelay
Definition:
FlutterTextureRegistryRelay.h:20
FlutterTexture
Definition:
FlutterMetalLayer.mm:54
FlutterTextureRegistryRelay.h
shell
platform
darwin
ios
framework
Source
FlutterTextureRegistryRelay.mm
Generated by
1.8.17