Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit df9e3fd

Browse files
Declare native wrapper classes in the GPU package as base classes (#46304)
This prohibits other implementations of the class interface that can not act as native wrappers. See flutter/flutter#123756
1 parent 7cd0439 commit df9e3fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/gpu/lib/src/context.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'dart:nativewrappers';
88
/// A handle to a graphics context. Used to create and manage GPU resources.
99
///
1010
/// To obtain the default graphics context, use [getContext].
11-
class GpuContext extends NativeFieldWrapperClass1 {
11+
base class GpuContext extends NativeFieldWrapperClass1 {
1212
/// Creates a new graphics context that corresponds to the default Impeller
1313
/// context.
1414
GpuContext._createDefault() {

lib/ui/experiments/gpu.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class RasterPipeline {}
147147
/// A handle to a graphics context. Used to create and manage GPU resources.
148148
///
149149
/// To obtain the default graphics context, use [getGpuContext].
150-
class GpuContext extends NativeFieldWrapperClass1 {
150+
base class GpuContext extends NativeFieldWrapperClass1 {
151151
/// Creates a new graphics context that corresponds to the default Impeller
152152
/// context.
153153
GpuContext._createDefault() {

0 commit comments

Comments
 (0)