Skip to content

Commit

Permalink
Declare native wrapper classes in the GPU package as base classes (#4…
Browse files Browse the repository at this point in the history
…6304)

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

See flutter/flutter#123756
  • Loading branch information
jason-simmons authored and harryterkelsen committed Oct 23, 2023
1 parent 7da06bb commit dbffbfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/gpu/lib/src/context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/experiments/gpu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit dbffbfc

Please sign in to comment.