mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Do not enable antialiasing by default in CanvasKit mode (flutter/engine#17534)
* Do not enable antialiasing by default in CanvasKit mode * Add comment
This commit is contained in:
parent
78c5bc73ba
commit
fc74a96f37
@ -114,8 +114,12 @@ class Surface {
|
||||
..position = 'absolute'
|
||||
..width = '${logicalSize.width.ceil()}px'
|
||||
..height = '${logicalSize.height.ceil()}px';
|
||||
final int glContext = canvasKit
|
||||
.callMethod('GetWebGLContext', <html.CanvasElement>[htmlCanvas]);
|
||||
final int glContext = canvasKit.callMethod('GetWebGLContext', <dynamic>[
|
||||
htmlCanvas,
|
||||
// Default to no anti-aliasing. Paint commands can be explicitly
|
||||
// anti-aliased by setting their `Paint` object's `antialias` property.
|
||||
js.JsObject.jsify({'antialias': 0}),
|
||||
]);
|
||||
final js.JsObject grContext =
|
||||
canvasKit.callMethod('MakeGrContext', <dynamic>[glContext]);
|
||||
final js.JsObject skSurface =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user