@@ -188,15 +188,6 @@ class PhysicalShapeEngineLayer extends _EngineLayerWrapper {
188188 PhysicalShapeEngineLayer ._(EngineLayer nativeLayer) : super ._(nativeLayer);
189189}
190190
191- /// An opaque handle to a picture engine layer.
192- ///
193- /// Instances of this class are created by [SceneBuilder.addPicture] .
194- ///
195- /// {@macro dart.ui.sceneBuilder.oldLayerCompatibility}
196- class PictureEngineLayer extends _EngineLayerWrapper {
197- PictureEngineLayer ._(EngineLayer nativeLayer) : super ._(nativeLayer);
198- }
199-
200191/// Builds a [Scene] containing the given visuals.
201192///
202193/// A [Scene] can then be rendered using [FlutterView.render] .
@@ -708,29 +699,18 @@ class SceneBuilder extends NativeFieldWrapperClass2 {
708699 /// Adds a [Picture] to the scene.
709700 ///
710701 /// The picture is rasterized at the given offset.
711- ///
712- /// {@macro dart.ui.sceneBuilder.oldLayer}
713- PictureEngineLayer addPicture (
702+ void addPicture (
714703 Offset offset,
715704 Picture picture, {
716705 bool isComplexHint = false ,
717706 bool willChangeHint = false ,
718- PictureEngineLayer ? oldLayer,
719707 }) {
720- assert (_debugCheckCanBeUsedAsOldLayer (oldLayer, 'addPicture' ));
721- final EngineLayer engineLayer = EngineLayer ._();
722708 final int hints = (isComplexHint ? 1 : 0 ) | (willChangeHint ? 2 : 0 );
723- _addPicture (engineLayer, offset.dx, offset.dy, picture, hints, oldLayer? ._nativeLayer);
724- return PictureEngineLayer ._(engineLayer);
709+ _addPicture (offset.dx, offset.dy, picture, hints);
725710 }
726711
727- void _addPicture (
728- EngineLayer outEngineLayer,
729- double dx,
730- double dy,
731- Picture picture,
732- int hints,
733- EngineLayer ? oldLayer) native 'SceneBuilder_addPicture' ;
712+ void _addPicture (double dx, double dy, Picture picture, int hints)
713+ native 'SceneBuilder_addPicture' ;
734714
735715 /// Adds a backend texture to the scene.
736716 ///
0 commit comments