From 177a661383c64e2f3dd3fda5f4658312e556681b Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Tue, 13 Aug 2024 23:16:15 +0200 Subject: [PATCH] Update dartdoc for gpu.dart (flutter/engine#54529) Update dartdoc for package:flutter_gpu with: 1) details on how to use the sdk dep 2) the current docs link [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/lib/gpu/lib/gpu.dart | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/lib/gpu/lib/gpu.dart b/engine/src/flutter/lib/gpu/lib/gpu.dart index 8603811c3f..ac41440e90 100644 --- a/engine/src/flutter/lib/gpu/lib/gpu.dart +++ b/engine/src/flutter/lib/gpu/lib/gpu.dart @@ -2,13 +2,22 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -/// The Flutter GPU library. +/// Flutter GPU is a low level API for building rendering packages from scratch. /// -/// To use, import `package:flutter_gpu/gpu.dart`. +/// To use, first add an SDK dependency in your `pubspec.yaml` file: +/// ``` +/// dependencies: +/// flutter_gpu: +/// sdk: flutter +/// ``` +/// And then add an import statement in your Dart files: +/// ```dart +/// import `package:flutter_gpu/gpu.dart`; +/// ``` /// /// See also: /// -/// * [Flutter GPU Wiki page](https://github.com/flutter/flutter/wiki/Flutter-GPU). +/// * [Flutter GPU documentation](https://github.com/flutter/engine/blob/main/docs/impeller/Flutter-GPU.md). library flutter_gpu; import 'dart:ffi';