@@ -676,9 +676,13 @@ typedef struct {
676
676
FlutterMetalCommandQueueHandle present_command_queue ;
677
677
/// The callback that gets invoked when the engine requests the embedder for a
678
678
/// texture to render to.
679
+ ///
680
+ /// Not used if a FlutterCompositor is supplied in FlutterProjectArgs.
679
681
FlutterMetalTextureCallback get_next_drawable_callback ;
680
682
/// The callback presented to the embedder to present a fully populated metal
681
683
/// texture to the user.
684
+ ///
685
+ /// Not used if a FlutterCompositor is supplied in FlutterProjectArgs.
682
686
FlutterMetalPresentCallback present_drawable_callback ;
683
687
/// When the embedder specifies that a texture has a frame available, the
684
688
/// engine will call this method (on an internal engine managed thread) so
@@ -805,6 +809,11 @@ typedef struct {
805
809
};
806
810
} FlutterRendererConfig ;
807
811
812
+ /// Display refers to a graphics hardware system consisting of a framebuffer,
813
+ /// typically a monitor or a screen. This ID is unique per display and is
814
+ /// stable until the Flutter application restarts.
815
+ typedef uint64_t FlutterEngineDisplayId ;
816
+
808
817
typedef struct {
809
818
/// The size of this struct. Must be sizeof(FlutterWindowMetricsEvent).
810
819
size_t struct_size ;
@@ -826,6 +835,8 @@ typedef struct {
826
835
double physical_view_inset_bottom ;
827
836
/// Left inset of window.
828
837
double physical_view_inset_left ;
838
+ /// The identifier of the display the view is rendering on.
839
+ FlutterEngineDisplayId display_id ;
829
840
} FlutterWindowMetricsEvent ;
830
841
831
842
/// The phase of the pointer event.
@@ -896,7 +907,6 @@ typedef enum {
896
907
kFlutterPointerSignalKindScroll ,
897
908
kFlutterPointerSignalKindScrollInertiaCancel ,
898
909
kFlutterPointerSignalKindScale ,
899
- kFlutterPointerSignalKindStylusAuxiliaryAction ,
900
910
} FlutterPointerSignalKind ;
901
911
902
912
typedef struct {
@@ -1654,11 +1664,6 @@ typedef const FlutterLocale* (*FlutterComputePlatformResolvedLocaleCallback)(
1654
1664
const FlutterLocale * * /* supported_locales*/ ,
1655
1665
size_t /* Number of locales*/ );
1656
1666
1657
- /// Display refers to a graphics hardware system consisting of a framebuffer,
1658
- /// typically a monitor or a screen. This ID is unique per display and is
1659
- /// stable until the Flutter application restarts.
1660
- typedef uint64_t FlutterEngineDisplayId ;
1661
-
1662
1667
typedef struct {
1663
1668
/// This size of this struct. Must be sizeof(FlutterDisplay).
1664
1669
size_t struct_size ;
@@ -1674,6 +1679,16 @@ typedef struct {
1674
1679
/// This represents the refresh period in frames per second. This value may be
1675
1680
/// zero if the device is not running or unavailable or unknown.
1676
1681
double refresh_rate ;
1682
+
1683
+ /// The width of the display, in physical pixels.
1684
+ size_t width ;
1685
+
1686
+ /// The height of the display, in physical pixels.
1687
+ size_t height ;
1688
+
1689
+ /// The pixel ratio of the display, which is used to convert physical pixels
1690
+ /// to logical pixels.
1691
+ double device_pixel_ratio ;
1677
1692
} FlutterEngineDisplay ;
1678
1693
1679
1694
/// The update type parameter that is passed to
0 commit comments