Declare native wrapper classes in the GPU package as base classes (flutter/engine#46304)

This prohibits other implementations of the class interface that can not act as native wrappers.

See https://github.com/flutter/flutter/issues/123756
This commit is contained in:
Jason Simmons
2023-09-27 07:44:54 -07:00
committed by GitHub
parent 75dcef5f45
commit c53ee75553
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import 'dart:nativewrappers';
/// A handle to a graphics context. Used to create and manage GPU resources.
///
/// To obtain the default graphics context, use [getContext].
class GpuContext extends NativeFieldWrapperClass1 {
base class GpuContext extends NativeFieldWrapperClass1 {
/// Creates a new graphics context that corresponds to the default Impeller
/// context.
GpuContext._createDefault() {

View File

@@ -147,7 +147,7 @@ class RasterPipeline {}
/// A handle to a graphics context. Used to create and manage GPU resources.
///
/// To obtain the default graphics context, use [getGpuContext].
class GpuContext extends NativeFieldWrapperClass1 {
base class GpuContext extends NativeFieldWrapperClass1 {
/// Creates a new graphics context that corresponds to the default Impeller
/// context.
GpuContext._createDefault() {