| Flutter macOS Embedder |

FlutterBackingStore.h
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 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERBACKINGSTORE_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERBACKINGSTORE_H_
7
8 #import <Cocoa/Cocoa.h>
9 #import <Metal/Metal.h>
10
11 /**
12 * Interface for backing store handles. Typically contain references to the buffers that
13 * are handed by the `FlutterView` to the `FlutterRenderer`.
14 */
15 @interface FlutterRenderBackingStore : NSObject
16
17 /**
18 * MTLTexture referenced by this backing store instance.
19 */
20 @property(nonnull, nonatomic, readonly) id<MTLTexture> texture;
21
22 /**
23 * Initializes a backing store with the specified MTLTexture.
24 */
25 - (nonnull instancetype)initWithTexture:(nonnull id<MTLTexture>)texture;
26
27 @end
28
29 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERBACKINGSTORE_H_
FlutterRenderBackingStore::texture
id< MTLTexture > texture
Definition: FlutterBackingStore.h:20
FlutterRenderBackingStore
Definition: FlutterBackingStore.h:15