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

Conversation

@brianosman
Copy link
Contributor

@brianosman brianosman commented Feb 8, 2019

This does several things:

Overall, I think the tradeoff is good, but I'm curious to see what benchmarks look like.

This does several things:
- It adds CPU time on the IO thread, but avoids GPU time on the GPU
  thread.
- For images that are never drawn with mipmaps, it adds about 33%
  memory overhead. For images that are drawn with mipmaps, it saves
  an entire copy of the base level.
- It fixes flutter/flutter#24517, which is
  a driver bug related to mip-mapping and cross-context images.

Overall, I think the tradeoff is good, but I'm curious to see what
benchmarks look like.
@chinmaygarde
Copy link
Contributor

We were planning on investigating this. Thanks for making a recommendation about the tradeoff.

@brianosman
Copy link
Contributor Author

Ah, didn't know about that issue. Yes - the interesting thing is that right now, even if you create an image without mipmaps, Skia will build them when you draw that image at scale < 1 and filter quality > low. We would actually like to get away from that, and make mipmaps be an immutable property of the image, but that's a pretty drastic API change. If Flutter wanted to do this, though - that would be great.

@brianosman brianosman merged commit 7c70240 into flutter:master Feb 8, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 8, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Feb 8, 2019
flutter/engine@25c513c...7c70240

git log 25c513c..7c70240 --no-merges --oneline
7c70240 Create mipmaps for images when uploading them on the IO thread (flutter/engine#7751)
3183d15 Rename macOS framework to FlutterMacOS.framework (flutter/engine#7740)
aa27582 Support for loading dynamic patches in AOT mode. (flutter/engine#7744)
5bfb1ec Roll src/third_party/skia f2a3f5943e4c..37064c1739f3 (11 commits) (flutter/engine#7752)
cf1d70a Add onPlatformBrightnessChanged/platformBrightness to stub ui window. (flutter/engine#7739)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop
the roller if necessary.
kangwang1988 pushed a commit to XianyuTech/flutter that referenced this pull request Feb 12, 2019
flutter/engine@25c513c...7c70240

git log 25c513c..7c70240 --no-merges --oneline
7c70240 Create mipmaps for images when uploading them on the IO thread (flutter/engine#7751)
3183d15 Rename macOS framework to FlutterMacOS.framework (flutter/engine#7740)
aa27582 Support for loading dynamic patches in AOT mode. (flutter/engine#7744)
5bfb1ec Roll src/third_party/skia f2a3f5943e4c..37064c1739f3 (11 commits) (flutter/engine#7752)
cf1d70a Add onPlatformBrightnessChanged/platformBrightness to stub ui window. (flutter/engine#7739)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop
the roller if necessary.
@brianosman brianosman deleted the adreno-img branch April 16, 2020 13:17
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.

Image rendering issues on Adreno 3xx devices after upgrade from 0.9.4 to 0.10.2

3 participants