@@ -34,7 +34,7 @@ class Scene extends NativeFieldWrapperClass1 {
34
34
return Image ._(image, image.width, image.height);
35
35
}
36
36
37
- @FfiNative < Handle Function (Pointer <Void >, Uint32 , Uint32 , Handle )> ('Scene::toImageSync' )
37
+ @Native < Handle Function (Pointer <Void >, Uint32 , Uint32 , Handle )> (symbol : 'Scene::toImageSync' )
38
38
external String ? _toImageSync (int width, int height, _Image outImage);
39
39
40
40
/// Creates a raster image representation of the current state of the scene.
@@ -58,7 +58,7 @@ class Scene extends NativeFieldWrapperClass1 {
58
58
);
59
59
}
60
60
61
- @FfiNative < Handle Function (Pointer <Void >, Uint32 , Uint32 , Handle )> ('Scene::toImage' )
61
+ @Native < Handle Function (Pointer <Void >, Uint32 , Uint32 , Handle )> (symbol : 'Scene::toImage' )
62
62
external String ? _toImage (int width, int height, _Callback <_Image ?> callback);
63
63
64
64
/// Releases the resources used by this scene.
@@ -67,7 +67,7 @@ class Scene extends NativeFieldWrapperClass1 {
67
67
///
68
68
/// This can't be a leaf call because the native function calls Dart API
69
69
/// (Dart_SetNativeInstanceField).
70
- @FfiNative < Void Function (Pointer <Void >)> ('Scene::dispose' )
70
+ @Native < Void Function (Pointer <Void >)> (symbol : 'Scene::dispose' )
71
71
external void dispose ();
72
72
}
73
73
@@ -235,7 +235,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
235
235
_constructor ();
236
236
}
237
237
238
- @FfiNative < Void Function (Handle )> ('SceneBuilder::Create' )
238
+ @Native < Void Function (Handle )> (symbol : 'SceneBuilder::Create' )
239
239
external void _constructor ();
240
240
241
241
// Layers used in this scene.
@@ -332,7 +332,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
332
332
return layer;
333
333
}
334
334
335
- @FfiNative < Void Function (Pointer <Void >, Handle , Handle , Handle )> ('SceneBuilder::pushTransformHandle' )
335
+ @Native < Void Function (Pointer <Void >, Handle , Handle , Handle )> (symbol : 'SceneBuilder::pushTransformHandle' )
336
336
external void _pushTransform (EngineLayer layer, Float64List matrix4, EngineLayer ? oldLayer);
337
337
338
338
/// Pushes an offset operation onto the operation stack.
@@ -357,7 +357,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
357
357
return layer;
358
358
}
359
359
360
- @FfiNative < Void Function (Pointer <Void >, Handle , Double , Double , Handle )> ('SceneBuilder::pushOffset' )
360
+ @Native < Void Function (Pointer <Void >, Handle , Double , Double , Handle )> (symbol : 'SceneBuilder::pushOffset' )
361
361
external void _pushOffset (EngineLayer layer, double dx, double dy, EngineLayer ? oldLayer);
362
362
363
363
/// Pushes a rectangular clip operation onto the operation stack.
@@ -386,7 +386,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
386
386
return layer;
387
387
}
388
388
389
- @FfiNative < Void Function (Pointer <Void >, Handle , Double , Double , Double , Double , Int32 , Handle )> ('SceneBuilder::pushClipRect' )
389
+ @Native < Void Function (Pointer <Void >, Handle , Double , Double , Double , Double , Int32 , Handle )> (symbol : 'SceneBuilder::pushClipRect' )
390
390
external void _pushClipRect (
391
391
EngineLayer outEngineLayer,
392
392
double left,
@@ -421,7 +421,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
421
421
return layer;
422
422
}
423
423
424
- @FfiNative < Void Function (Pointer <Void >, Handle , Handle , Int32 , Handle )> ('SceneBuilder::pushClipRRect' )
424
+ @Native < Void Function (Pointer <Void >, Handle , Handle , Int32 , Handle )> (symbol : 'SceneBuilder::pushClipRRect' )
425
425
external void _pushClipRRect (EngineLayer layer, Float32List rrect, int clipBehavior, EngineLayer ? oldLayer);
426
426
427
427
/// Pushes a path clip operation onto the operation stack.
@@ -449,7 +449,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
449
449
return layer;
450
450
}
451
451
452
- @FfiNative < Void Function (Pointer <Void >, Handle , Pointer <Void >, Int32 , Handle )> ('SceneBuilder::pushClipPath' )
452
+ @Native < Void Function (Pointer <Void >, Handle , Pointer <Void >, Int32 , Handle )> (symbol : 'SceneBuilder::pushClipPath' )
453
453
external void _pushClipPath (EngineLayer layer, Path path, int clipBehavior, EngineLayer ? oldLayer);
454
454
455
455
/// Pushes an opacity operation onto the operation stack.
@@ -477,7 +477,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
477
477
return layer;
478
478
}
479
479
480
- @FfiNative < Void Function (Pointer <Void >, Handle , Int32 , Double , Double , Handle )> ('SceneBuilder::pushOpacity' )
480
+ @Native < Void Function (Pointer <Void >, Handle , Int32 , Double , Double , Handle )> (symbol : 'SceneBuilder::pushOpacity' )
481
481
external void _pushOpacity (EngineLayer layer, int alpha, double dx, double dy, EngineLayer ? oldLayer);
482
482
483
483
/// Pushes a color filter operation onto the operation stack.
@@ -505,7 +505,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
505
505
return layer;
506
506
}
507
507
508
- @FfiNative < Void Function (Pointer <Void >, Handle , Pointer <Void >, Handle )> ('SceneBuilder::pushColorFilter' )
508
+ @Native < Void Function (Pointer <Void >, Handle , Pointer <Void >, Handle )> (symbol : 'SceneBuilder::pushColorFilter' )
509
509
external void _pushColorFilter (EngineLayer layer, _ColorFilter filter, EngineLayer ? oldLayer);
510
510
511
511
/// Pushes an image filter operation onto the operation stack.
@@ -534,7 +534,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
534
534
return layer;
535
535
}
536
536
537
- @FfiNative < Void Function (Pointer <Void >, Handle , Pointer <Void >, Double , Double , Handle )> ('SceneBuilder::pushImageFilter' )
537
+ @Native < Void Function (Pointer <Void >, Handle , Pointer <Void >, Double , Double , Handle )> (symbol : 'SceneBuilder::pushImageFilter' )
538
538
external void _pushImageFilter (EngineLayer outEngineLayer, _ImageFilter filter, double dx, double dy, EngineLayer ? oldLayer);
539
539
540
540
/// Pushes a backdrop filter operation onto the operation stack.
@@ -561,7 +561,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
561
561
return layer;
562
562
}
563
563
564
- @FfiNative < Void Function (Pointer <Void >, Handle , Pointer <Void >, Int32 , Handle )> ('SceneBuilder::pushBackdropFilter' )
564
+ @Native < Void Function (Pointer <Void >, Handle , Pointer <Void >, Int32 , Handle )> (symbol : 'SceneBuilder::pushBackdropFilter' )
565
565
external void _pushBackdropFilter (EngineLayer outEngineLayer, _ImageFilter filter, int blendMode, EngineLayer ? oldLayer);
566
566
567
567
/// Pushes a shader mask operation onto the operation stack.
@@ -599,8 +599,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
599
599
return layer;
600
600
}
601
601
602
- @FfiNative < Void Function (Pointer <Void >, Handle , Pointer <Void >, Double , Double , Double , Double , Int32 , Int32 , Handle )> (
603
- 'SceneBuilder::pushShaderMask' )
602
+ @Native < Void Function (Pointer <Void >, Handle , Pointer <Void >, Double , Double , Double , Double , Int32 , Int32 , Handle )> (symbol: 'SceneBuilder::pushShaderMask' )
604
603
external void _pushShaderMask (
605
604
EngineLayer engineLayer,
606
605
Shader shader,
@@ -649,7 +648,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
649
648
return layer;
650
649
}
651
650
652
- @FfiNative < Void Function (Pointer <Void >, Handle , Pointer <Void >, Double , Int32 , Int32 , Int32 , Handle )> ('SceneBuilder::pushPhysicalShape' )
651
+ @Native < Void Function (Pointer <Void >, Handle , Pointer <Void >, Double , Int32 , Int32 , Int32 , Handle )> (symbol : 'SceneBuilder::pushPhysicalShape' )
653
652
external void _pushPhysicalShape (
654
653
EngineLayer outEngineLayer,
655
654
Path path,
@@ -672,7 +671,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
672
671
_pop ();
673
672
}
674
673
675
- @FfiNative < Void Function (Pointer <Void >)> ('SceneBuilder::pop' , isLeaf: true )
674
+ @Native < Void Function (Pointer <Void >)> (symbol : 'SceneBuilder::pop' , isLeaf: true )
676
675
external void _pop ();
677
676
678
677
/// Add a retained engine layer subtree from previous frames.
@@ -712,7 +711,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
712
711
_addRetained (wrapper._nativeLayer! );
713
712
}
714
713
715
- @FfiNative < Void Function (Pointer <Void >, Handle )> ('SceneBuilder::addRetained' )
714
+ @Native < Void Function (Pointer <Void >, Handle )> (symbol : 'SceneBuilder::addRetained' )
716
715
external void _addRetained (EngineLayer retainedLayer);
717
716
718
717
/// Adds an object to the scene that displays performance statistics.
@@ -743,7 +742,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
743
742
_addPerformanceOverlay (enabledOptions, bounds.left, bounds.right, bounds.top, bounds.bottom);
744
743
}
745
744
746
- @FfiNative < Void Function (Pointer <Void >, Uint64 , Double , Double , Double , Double )> ('SceneBuilder::addPerformanceOverlay' , isLeaf: true )
745
+ @Native < Void Function (Pointer <Void >, Uint64 , Double , Double , Double , Double )> (symbol : 'SceneBuilder::addPerformanceOverlay' , isLeaf: true )
747
746
external void _addPerformanceOverlay (int enabledOptions, double left, double right, double top, double bottom);
748
747
749
748
/// Adds a [Picture] to the scene.
@@ -778,7 +777,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
778
777
_addPicture (offset.dx, offset.dy, picture, hints);
779
778
}
780
779
781
- @FfiNative < Void Function (Pointer <Void >, Double , Double , Pointer <Void >, Int32 )> ('SceneBuilder::addPicture' )
780
+ @Native < Void Function (Pointer <Void >, Double , Double , Pointer <Void >, Int32 )> (symbol : 'SceneBuilder::addPicture' )
782
781
external void _addPicture (double dx, double dy, Picture picture, int hints);
783
782
784
783
/// Adds a backend texture to the scene.
@@ -804,7 +803,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
804
803
_addTexture (offset.dx, offset.dy, width, height, textureId, freeze, filterQuality.index);
805
804
}
806
805
807
- @FfiNative < Void Function (Pointer <Void >, Double , Double , Double , Double , Int64 , Bool , Int32 )> ('SceneBuilder::addTexture' , isLeaf: true )
806
+ @Native < Void Function (Pointer <Void >, Double , Double , Double , Double , Int64 , Bool , Int32 )> (symbol : 'SceneBuilder::addTexture' , isLeaf: true )
808
807
external void _addTexture (double dx, double dy, double width, double height, int textureId, bool freeze, int filterQuality);
809
808
810
809
/// Adds a platform view (e.g an iOS UIView) to the scene.
@@ -833,7 +832,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
833
832
_addPlatformView (offset.dx, offset.dy, width, height, viewId);
834
833
}
835
834
836
- @FfiNative < Void Function (Pointer <Void >, Double , Double , Double , Double , Int64 )> ('SceneBuilder::addPlatformView' , isLeaf: true )
835
+ @Native < Void Function (Pointer <Void >, Double , Double , Double , Double , Int64 )> (symbol : 'SceneBuilder::addPlatformView' , isLeaf: true )
837
836
external void _addPlatformView (double dx, double dy, double width, double height, int viewId);
838
837
839
838
/// Sets a threshold after which additional debugging information should be recorded.
@@ -842,7 +841,7 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
842
841
/// interested in using this feature, please contact [flutter-dev] (https://groups.google.com/forum/#!forum/flutter-dev).
843
842
/// We'll hopefully be able to figure out how to make this feature more useful
844
843
/// to you.
845
- @FfiNative < Void Function (Pointer <Void >, Uint32 )> ('SceneBuilder::setRasterizerTracingThreshold' , isLeaf: true )
844
+ @Native < Void Function (Pointer <Void >, Uint32 )> (symbol : 'SceneBuilder::setRasterizerTracingThreshold' , isLeaf: true )
846
845
external void setRasterizerTracingThreshold (int frameInterval);
847
846
848
847
/// Sets whether the raster cache should checkerboard cached entries. This is
@@ -860,14 +859,14 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
860
859
///
861
860
/// Currently this interface is difficult to use by end-developers. If you're
862
861
/// interested in using this feature, please contact [flutter-dev] (https://groups.google.com/forum/#!forum/flutter-dev).
863
- @FfiNative < Void Function (Pointer <Void >, Bool )> ('SceneBuilder::setCheckerboardRasterCacheImages' , isLeaf: true )
862
+ @Native < Void Function (Pointer <Void >, Bool )> (symbol : 'SceneBuilder::setCheckerboardRasterCacheImages' , isLeaf: true )
864
863
external void setCheckerboardRasterCacheImages (bool checkerboard);
865
864
866
865
/// Sets whether the compositor should checkerboard layers that are rendered
867
866
/// to offscreen bitmaps.
868
867
///
869
868
/// This is only useful for debugging purposes.
870
- @FfiNative < Void Function (Pointer <Void >, Bool )> ('SceneBuilder::setCheckerboardOffscreenLayers' , isLeaf: true )
869
+ @Native < Void Function (Pointer <Void >, Bool )> (symbol : 'SceneBuilder::setCheckerboardOffscreenLayers' , isLeaf: true )
871
870
external void setCheckerboardOffscreenLayers (bool checkerboard);
872
871
873
872
/// Finishes building the scene.
@@ -884,6 +883,6 @@ class SceneBuilder extends NativeFieldWrapperClass1 {
884
883
return scene;
885
884
}
886
885
887
- @FfiNative < Void Function (Pointer <Void >, Handle )> ('SceneBuilder::build' )
886
+ @Native < Void Function (Pointer <Void >, Handle )> (symbol : 'SceneBuilder::build' )
888
887
external void _build (Scene outScene);
889
888
}
0 commit comments