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

Do not enable antialiasing by default in CanvasKit mode #17534

Merged
merged 3 commits into from
Apr 8, 2020

Conversation

harryterkelsen
Copy link
Contributor

@harryterkelsen harryterkelsen requested a review from yjbanov April 6, 2020 19:42
@auto-assign auto-assign bot requested a review from flar April 6, 2020 19:42
.callMethod('GetWebGLContext', <html.CanvasElement>[htmlCanvas]);
final int glContext = canvasKit.callMethod('GetWebGLContext', <dynamic>[
htmlCanvas,
js.JsObject.jsify({'antialias': 0}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a comment above explaining why it's OK to set it to 0 here. For example, I imagine it doesn't disable AA globally but let's Skia control it?

Copy link
Contributor Author

@harryterkelsen harryterkelsen Apr 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Yes, this flag doesn't force-disable anti-aliasing: it just sets the default to have no anti-aliasing.

@harryterkelsen harryterkelsen added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Apr 8, 2020
@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Windows Host Engine has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite build_and_test_linux_unopt_debug has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot fluttergithubbot removed the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Apr 8, 2020
@harryterkelsen
Copy link
Contributor Author

Merging despite unrelated infra failures

@harryterkelsen harryterkelsen merged commit 38cba07 into flutter:master Apr 8, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 8, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 8, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 8, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 8, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flutter Web + CanvasKit automatically turns on WebGL antialiasing
4 participants