| Flutter iOS Embedder |

FlutterMetalLayer.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 #import <QuartzCore/QuartzCore.h>
6
7 /// Drop-in replacement (as far as Flutter is concerned) for CAMetalLayer
8 /// that can present with transaction from a background thread.
9 @interface FlutterMetalLayer : CALayer
10
11 @property(nullable, retain) id<MTLDevice> device;
12 @property(nullable, readonly) id<MTLDevice> preferredDevice;
13 @property MTLPixelFormat pixelFormat;
14 @property BOOL framebufferOnly;
15 @property CGSize drawableSize;
16 @property BOOL presentsWithTransaction;
17 @property(nullable) CGColorSpaceRef colorspace;
18 @property BOOL wantsExtendedDynamicRangeContent;
19
20 - (nullable id<CAMetalDrawable>)nextDrawable;
21
22 /// Returns whether the Metal layer is enabled.
23 /// This is controlled by FLTUseFlutterMetalLayer value in Info.plist.
24 + (BOOL)enabled;
25
26 @end
FlutterMetalLayer::wantsExtendedDynamicRangeContent
BOOL wantsExtendedDynamicRangeContent
Definition: FlutterMetalLayer.h:18
+[FlutterMetalLayer enabled]
BOOL enabled()
Definition: FlutterMetalLayer.mm:408
FlutterMetalLayer::framebufferOnly
BOOL framebufferOnly
Definition: FlutterMetalLayer.h:14
FlutterMetalLayer::colorspace
CGColorSpaceRef colorspace
Definition: FlutterMetalLayer.h:17
FlutterMetalLayer::preferredDevice
id< MTLDevice > preferredDevice
Definition: FlutterMetalLayer.h:12
FlutterMetalLayer::presentsWithTransaction
BOOL presentsWithTransaction
Definition: FlutterMetalLayer.h:16
FlutterMetalLayer::device
id< MTLDevice > device
Definition: FlutterMetalLayer.h:11
-[FlutterMetalLayer nextDrawable]
nullable id< CAMetalDrawable > nextDrawable()
Definition: FlutterMetalLayer.mm:354
FlutterMetalLayer::pixelFormat
MTLPixelFormat pixelFormat
Definition: FlutterMetalLayer.h:13
FlutterMetalLayer::drawableSize
CGSize drawableSize
Definition: FlutterMetalLayer.h:15
FlutterMetalLayer
Definition: FlutterMetalLayer.h:9