Rename GPU thread to raster thread in API docs (#53422)
This commit is contained in:
@@ -34,9 +34,9 @@ Future<void> main() async {
|
||||
));
|
||||
await SchedulerBinding.instance.endOfFrame;
|
||||
|
||||
/// Wait 50ms to allow the GPU thread to actually put up the frame. (The
|
||||
/// endOfFrame future ends when we send the data to the engine, before the GPU
|
||||
/// thread has had a chance to rasterize, etc.)
|
||||
/// Wait 50ms to allow the raster thread to actually put up the frame. (The
|
||||
/// endOfFrame future ends when we send the data to the engine, before
|
||||
/// the raster thread has had a chance to rasterize, etc.)
|
||||
await Future<void>.delayed(const Duration(milliseconds: 50));
|
||||
debugPrint('==== MEMORY BENCHMARK ==== READY ====');
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_driver/driver_extension.dart';
|
||||
|
||||
/// This sample application creates a hard to render frame, causing the
|
||||
/// driver script to race the GPU thread. If the driver script wins the
|
||||
/// race, it will screenshot the previous frame. If the GPU thread wins
|
||||
/// driver script to race the raster thread. If the driver script wins the
|
||||
/// race, it will screenshot the previous frame. If the raster thread wins
|
||||
/// it, it will screenshot the latest frame.
|
||||
void main() {
|
||||
enableFlutterDriverExtension();
|
||||
@@ -64,7 +64,7 @@ List<Widget> _buildRows(int count) {
|
||||
}
|
||||
|
||||
/// Builds cells that are known to take time to render causing a delay on the
|
||||
/// GPU thread.
|
||||
/// raster thread.
|
||||
List<Widget> _buildCells(double epsilon) {
|
||||
return List<Widget>.generate(15, (int i) {
|
||||
return Expanded(
|
||||
|
||||
Reference in New Issue
Block a user