add final class modifiers to fix dart roll (flutter/engine#40434)
This commit is contained in:
committed by
GitHub
parent
9f6349df70
commit
9258a58a33
@@ -145,14 +145,14 @@ final ffi.DynamicLibrary _dylib = () {
|
||||
throw UnsupportedError('Unknown platform: ${Platform.operatingSystem}');
|
||||
}();
|
||||
|
||||
class _Vertices extends ffi.Struct {
|
||||
final class _Vertices extends ffi.Struct {
|
||||
external ffi.Pointer<ffi.Float> points;
|
||||
|
||||
@ffi.Uint32()
|
||||
external int size;
|
||||
}
|
||||
|
||||
class _PathBuilder extends ffi.Opaque {}
|
||||
final class _PathBuilder extends ffi.Opaque {}
|
||||
|
||||
typedef _CreatePathBuilderType = ffi.Pointer<_PathBuilder> Function();
|
||||
typedef _create_path_builder_type = ffi.Pointer<_PathBuilder> Function();
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'dart:ffi';
|
||||
|
||||
import 'package:ui/src/engine/skwasm/skwasm_impl.dart';
|
||||
|
||||
class CanvasWrapper extends Opaque {}
|
||||
final class CanvasWrapper extends Opaque {}
|
||||
|
||||
typedef CanvasHandle = Pointer<CanvasWrapper>;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import 'dart:typed_data';
|
||||
|
||||
import 'package:ui/ui.dart' as ui;
|
||||
|
||||
class Stack extends Opaque {}
|
||||
final class Stack extends Opaque {}
|
||||
typedef StackPointer = Pointer<Stack>;
|
||||
|
||||
/// Generic linear memory allocation
|
||||
|
||||
@@ -7,7 +7,7 @@ library skwasm_impl;
|
||||
|
||||
import 'dart:ffi';
|
||||
|
||||
class RawPaint extends Opaque {}
|
||||
final class RawPaint extends Opaque {}
|
||||
|
||||
typedef PaintHandle = Pointer<RawPaint>;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'dart:ffi';
|
||||
|
||||
import 'package:ui/src/engine/skwasm/skwasm_impl.dart';
|
||||
|
||||
class RawPath extends Opaque {}
|
||||
final class RawPath extends Opaque {}
|
||||
|
||||
typedef PathHandle = Pointer<RawPath>;
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ import 'dart:ffi';
|
||||
|
||||
import 'package:ui/src/engine/skwasm/skwasm_impl.dart';
|
||||
|
||||
class RawContourMeasure extends Opaque {}
|
||||
final class RawContourMeasure extends Opaque {}
|
||||
|
||||
class RawContourMeasureIter extends Opaque {}
|
||||
final class RawContourMeasureIter extends Opaque {}
|
||||
|
||||
typedef ContourMeasureHandle = Pointer<RawContourMeasure>;
|
||||
typedef ContourMeasureIterHandle = Pointer<RawContourMeasureIter>;
|
||||
|
||||
@@ -9,10 +9,10 @@ import 'dart:ffi';
|
||||
|
||||
import 'package:ui/src/engine/skwasm/skwasm_impl.dart';
|
||||
|
||||
class RawPictureRecorder extends Opaque {}
|
||||
final class RawPictureRecorder extends Opaque {}
|
||||
typedef PictureRecorderHandle = Pointer<RawPictureRecorder>;
|
||||
|
||||
class RawPicture extends Opaque {}
|
||||
final class RawPicture extends Opaque {}
|
||||
typedef PictureHandle = Pointer<RawPicture>;
|
||||
|
||||
@Native<PictureRecorderHandle Function()>(
|
||||
|
||||
@@ -8,7 +8,7 @@ library skwasm_impl;
|
||||
import 'dart:ffi';
|
||||
import 'package:ui/src/engine/skwasm/skwasm_impl.dart';
|
||||
|
||||
class RawSurface extends Opaque {}
|
||||
final class RawSurface extends Opaque {}
|
||||
typedef SurfaceHandle = Pointer<RawSurface>;
|
||||
|
||||
@Native<SurfaceHandle Function(Pointer<Int8>)>(
|
||||
|
||||
@@ -256,32 +256,32 @@ class ZirconFFIBindings {
|
||||
.asFunction<_dart_zircon_dart_dl_initialize>();
|
||||
}
|
||||
|
||||
class zircon_dart_byte_array_t extends ffi.Struct {
|
||||
final class zircon_dart_byte_array_t extends ffi.Struct {
|
||||
external ffi.Pointer<ffi.Uint8> data;
|
||||
|
||||
@ffi.Uint32()
|
||||
external int length;
|
||||
}
|
||||
|
||||
class zircon_dart_handle_t extends ffi.Struct {
|
||||
final class zircon_dart_handle_t extends ffi.Struct {
|
||||
@ffi.Uint32()
|
||||
external int handle;
|
||||
}
|
||||
|
||||
class zircon_dart_handle_pair_t extends ffi.Struct {
|
||||
final class zircon_dart_handle_pair_t extends ffi.Struct {
|
||||
external ffi.Pointer<zircon_dart_handle_t> left;
|
||||
|
||||
external ffi.Pointer<zircon_dart_handle_t> right;
|
||||
}
|
||||
|
||||
class zircon_dart_handle_list_t extends ffi.Struct {
|
||||
final class zircon_dart_handle_list_t extends ffi.Struct {
|
||||
external ffi.Pointer<ffi.Void> data;
|
||||
|
||||
@ffi.Uint32()
|
||||
external int size;
|
||||
}
|
||||
|
||||
class _Dart_Handle extends ffi.Opaque {}
|
||||
final class _Dart_Handle extends ffi.Opaque {}
|
||||
|
||||
typedef _c_zircon_dart_byte_array_create = ffi.Pointer<zircon_dart_byte_array_t>
|
||||
Function(
|
||||
|
||||
@@ -309,9 +309,9 @@ final ffi.DynamicLibrary _dylib = () {
|
||||
throw UnsupportedError('Unknown platform: ${Platform.operatingSystem}');
|
||||
}();
|
||||
|
||||
class _SkPath extends ffi.Opaque {}
|
||||
final class _SkPath extends ffi.Opaque {}
|
||||
|
||||
class _PathData extends ffi.Struct {
|
||||
final class _PathData extends ffi.Struct {
|
||||
external ffi.Pointer<ffi.Uint8> verbs;
|
||||
|
||||
@ffi.Size()
|
||||
|
||||
Reference in New Issue
Block a user