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:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user