This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 1 file changed +12
-10
lines changed
lib/web_ui/lib/src/engine/canvaskit 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -245,16 +245,18 @@ class CanvasKitRenderer implements Renderer {
245
245
}
246
246
247
247
@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
+
258
260
if (skImage == null ) {
259
261
throw Exception ('Failed to convert image bitmap to an SkImage.' );
260
262
}
You can’t perform that action at this time.
0 commit comments