File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
lib/web_ui/lib/src/engine/compositor Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,12 @@ class Surface {
114
114
..position = 'absolute'
115
115
..width = '${logicalSize .width .ceil ()}px'
116
116
..height = '${logicalSize .height .ceil ()}px' ;
117
- final int glContext = canvasKit
118
- .callMethod ('GetWebGLContext' , < html.CanvasElement > [htmlCanvas]);
117
+ final int glContext = canvasKit.callMethod ('GetWebGLContext' , < dynamic > [
118
+ htmlCanvas,
119
+ // Default to no anti-aliasing. Paint commands can be explicitly
120
+ // anti-aliased by setting their `Paint` object's `antialias` property.
121
+ js.JsObject .jsify ({'antialias' : 0 }),
122
+ ]);
119
123
final js.JsObject grContext =
120
124
canvasKit.callMethod ('MakeGrContext' , < dynamic > [glContext]);
121
125
final js.JsObject skSurface =
You can’t perform that action at this time.
0 commit comments