-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[google_maps_flutter] Fix ios tile overlay not loading when dealing with wide gamut images #6377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[google_maps_flutter] Fix ios tile overlay not loading when dealing with wide gamut images #6377
Conversation
…su/packages into fix-wide-gamut-issue-google-maps
hellohuanlin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm after nits
...ogle_maps_flutter/google_maps_flutter_ios/example/ios14/ios/Runner.xcodeproj/project.pbxproj
Outdated
Show resolved
Hide resolved
.../google_maps_flutter/google_maps_flutter_ios/example/ios14/ios/RunnerTests/GoogleMapsTests.m
Outdated
Show resolved
Hide resolved
.../google_maps_flutter/google_maps_flutter_ios/example/ios14/ios/RunnerTests/GoogleMapsTests.m
Outdated
Show resolved
Hide resolved
.../google_maps_flutter/google_maps_flutter_ios/example/ios14/ios/RunnerTests/GoogleMapsTests.m
Outdated
Show resolved
Hide resolved
| size_t bitsPerComponent = CGImageGetBitsPerComponent(imageRef); | ||
|
|
||
| XCTAssert(isFloat == false); | ||
| XCTAssert(bitsPerComponent != 16); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the value actually gonna be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-wide gamut imgs are 8 bit, changed to test that instead
.../google_maps_flutter/google_maps_flutter_ios/ios/Classes/FLTGoogleMapTileOverlayController.m
Outdated
Show resolved
Hide resolved
…ealing with wide gamut images (flutter/packages#6377)
…ealing with wide gamut images (flutter/packages#6377)
flutter/packages@ab1630b...e6b3e11 2024-03-27 49699333+dependabot[bot]@users.noreply.github.com [camera]: Bump androidx.annotation:annotation from 1.7.0 to 1.7.1 in /packages/camera/camera_android/android (flutter/packages#5707) 2024-03-27 louisehsu@google.com [google_maps_flutter] Fix ios tile overlay not loading when dealing with wide gamut images (flutter/packages#6377) 2024-03-26 goderbauer@google.com [flutter_lints] Updates various links (flutter/packages#6400) 2024-03-26 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.24.7 to 3.24.9 (flutter/packages#6386) 2024-03-26 engine-flutter-autoroll@skia.org Roll Flutter from 14774b9 to dbdcead (38 revisions) (flutter/packages#6399) 2024-03-26 49699333+dependabot[bot]@users.noreply.github.com [in_app_pur]: Bump org.json:json from 20231013 to 20240303 in /packages/in_app_purchase/in_app_purchase_android/example/android/app (flutter/packages#6255) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Fixes flutter/flutter#135252
Google maps does not currently support the use of wide gamut images.
Since engine uses 16 bit floats when dealing with wide gamut images (here), when we detect that an image is using that format, we downsample it.
434666538_7633704776682015_2581174196928191417_n.mp4
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.