This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
lib/web_ui/lib/src/engine/canvaskit Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -239,16 +239,18 @@ class CanvasKitRenderer implements Renderer {
239239 }
240240
241241 @override
242- ui.Image createImageFromTextureSource (Object object, { required int width, required int height }) {
243- final SkImage ? skImage = canvasKit.MakeLazyImageFromTextureSourceWithInfo (object,
244- SkPartialImageInfo (
245- width: width.toDouble (),
246- height: height.toDouble (),
247- alphaType: canvasKit.AlphaType .Premul ,
248- colorType: canvasKit.ColorType .RGBA_8888 ,
249- colorSpace: SkColorSpaceSRGB ,
250- ));
251-
242+ ui.Image createImageFromTextureSource (Object object,
243+ {required int width, required int height}) {
244+ final SkImage ? skImage = canvasKit.MakeLazyImageFromTextureSourceWithInfo (
245+ object,
246+ SkPartialImageInfo (
247+ width: width.toDouble (),
248+ height: height.toDouble (),
249+ alphaType: canvasKit.AlphaType .Premul ,
250+ colorType: canvasKit.ColorType .RGBA_8888 ,
251+ colorSpace: SkColorSpaceSRGB ,
252+ ));
253+
252254 if (skImage == null ) {
253255 throw Exception ('Failed to convert image bitmap to an SkImage.' );
254256 }
You can’t perform that action at this time.
0 commit comments