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

Conversation

@chinmaygarde
Copy link
Member

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@chinmaygarde
Copy link
Member Author

It isn't clear what needs to be done to land the Skia patch in lockstep with this one. Also, the !OS_FUCHSIA stuff can probably be avoided but decided I could do that in another patch to keep the differences small as I couldn't test the Fuchsia stuff on Mac.

@chinmaygarde chinmaygarde changed the title Don't compile the GL backend on iOS. Don't compile the Skia GL backend on iOS. Jul 26, 2022
sk_sp<GrDirectContext> ShellIOManager::CreateCompatibleResourceLoadingContext(
GrBackend backend,
sk_sp<const GrGLInterface> gl_interface) {
#if !OS_FUCHSIA && SK_GL
Copy link
Member

Choose a reason for hiding this comment

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

Is SK_GL any different from SHELL_ENABLE_GL in this context?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, SHELL_ENABLE_GL is only available in the GPU specific code. Unfortunately, this is in shell/common. Ideally, this selection should be moved to shell/gpu but that is a larger change.

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: add a TODO and file a bug to move this to shell/gpu

Copy link
Member Author

@chinmaygarde chinmaygarde Jul 28, 2022

Choose a reason for hiding this comment

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

Removed the confusing OS_FUCHSIA stuff in #34959. Followup for moving to shell/gpu in flutter/flutter#108502.

tools/gn Outdated
gn_args['skia_use_expat'] = args.target_os == 'android'
gn_args['skia_use_fontconfig'] = args.enable_fontconfig

if args.target_os == 'ios':
Copy link
Member

Choose a reason for hiding this comment

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

There's similar code starting around line 407.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@zanderso
Copy link
Member

Presumably the Skia roll with the above CL will fail, but will pass when patched into this PR. That's probably how we'll have to land them.

@chinmaygarde
Copy link
Member Author

Roger. That doesn't have a review yet. Once that lands and a roll is attempted, I'll rebase.

@chinmaygarde
Copy link
Member Author

The Skia roller is blocked on an unrelated issue and I am waiting for the roll with the linked CL to be attempted.

@chinmaygarde chinmaygarde force-pushed the skia_use_gl_false_ios branch from deabec6 to 1aa87aa Compare July 27, 2022 23:47
@chinmaygarde
Copy link
Member Author

The patch has rolled in and I've rebased here #34949.

@chinmaygarde chinmaygarde added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 27, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Jul 27, 2022

  • The status or check suite Linux Unopt has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 27, 2022
@chinmaygarde chinmaygarde added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 28, 2022
@auto-submit auto-submit bot merged commit 229cd84 into flutter:main Jul 28, 2022
@chinmaygarde chinmaygarde deleted the skia_use_gl_false_ios branch July 28, 2022 00:53
chinmaygarde added a commit that referenced this pull request Jul 28, 2022
`SK_GL` should already be unset on Fuchsia builds.

Followup based [this thread](#34924 (comment)).
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 28, 2022
betrevisan pushed a commit to betrevisan/engine that referenced this pull request Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App needs tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants