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

Conversation

@iskakaushik
Copy link
Contributor

@google-cla google-cla bot added the cla: yes label Jan 26, 2021
@iskakaushik iskakaushik force-pushed the make-metal-default branch 2 times, most recently from 62b06ea to 9dc35f7 Compare January 26, 2021 22:04
@iskakaushik iskakaushik force-pushed the make-metal-default branch 2 times, most recently from 8da4789 to ba7fda7 Compare February 22, 2021 18:27
@iskakaushik iskakaushik changed the title [WIP] [macos] Make metal the default rendering backend on macOS >= 10.14 [macos] Make metal the default rendering backend on macOS >= 10.14 Feb 22, 2021
@iskakaushik iskakaushik marked this pull request as ready for review February 22, 2021 18:28
@iskakaushik iskakaushik 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 Feb 22, 2021
@iskakaushik iskakaushik merged commit 07e7daf into flutter:master Feb 22, 2021
@iskakaushik iskakaushik deleted the make-metal-default branch February 22, 2021 23:17
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 23, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 23, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 23, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 23, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 23, 2021
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

Unless I'm missing some code here, this needs to be reverted; see comment below.

@implementation FlutterRenderingBackend

+ (BOOL)renderUsingMetal {
if (@available(macOS 10.14, *)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Per previous discussion, there are two aspects to enabling Metal:

  • What OS version we (read: Skia) are comfortable enabling Metal on.
  • Whether the current host hardware supports Metal (not all Macs that can run macOS 10.14 support Metal)

I'm not seeing any querying of the second here, which would make this logic incorrect. See also flutter/flutter#76710

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[macos] [metal] Select rendering backend during engine start-up

3 participants