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

Commit 327c164

Browse files
Jesse Ezelltimu-jesse-ezell
Jesse Ezell
authored andcommitted
dart format
1 parent 7cf2efb commit 327c164

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

lib/web_ui/lib/src/engine/canvaskit/renderer.dart

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,18 @@ class CanvasKitRenderer implements Renderer {
245245
}
246246

247247
@override
248-
ui.Image createImageFromTextureSource(Object object, { required int width, required int height }) {
249-
final SkImage? skImage = canvasKit.MakeLazyImageFromTextureSourceWithInfo(object,
250-
SkPartialImageInfo(
251-
width: width.toDouble(),
252-
height: height.toDouble(),
253-
alphaType: canvasKit.AlphaType.Premul,
254-
colorType: canvasKit.ColorType.RGBA_8888,
255-
colorSpace: SkColorSpaceSRGB,
256-
));
257-
248+
ui.Image createImageFromTextureSource(Object object,
249+
{required int width, required int height}) {
250+
final SkImage? skImage = canvasKit.MakeLazyImageFromTextureSourceWithInfo(
251+
object,
252+
SkPartialImageInfo(
253+
width: width.toDouble(),
254+
height: height.toDouble(),
255+
alphaType: canvasKit.AlphaType.Premul,
256+
colorType: canvasKit.ColorType.RGBA_8888,
257+
colorSpace: SkColorSpaceSRGB,
258+
));
259+
258260
if (skImage == null) {
259261
throw Exception('Failed to convert image bitmap to an SkImage.');
260262
}

0 commit comments

Comments
 (0)