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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flutter/engine
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f9067ed20a1d
Choose a base ref
...
head repository: flutter/engine
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf05ab4265d9
Choose a head ref
  • 1 commit
  • 7 files changed
  • 1 contributor

Commits on Dec 3, 2022

  1. [embedder] Ensure FlutterMetalTexture cleanup call (#38038)

    This ensures FlutterMetalTexture.destruction_callback gets called.
    
    FlutterRendererConfig.get_next_drawable_callback holds a callback used by the embedder API to request a drawable; in the case of Metal, this drawable is a FlutterMetalTexture.
    
    FlutterMetalTexture.destruction_callback should be called when it's safe to release resources associated with the FlutterMetalTexture. This callback is not currently invoked for textures returned via FlutterRendererConfig.get_next_drawable_callback; instead we unpack the returned struct and pass it on.
    
    In the compositor codepath, we do create an SkSurface that triggers the destruction callback, here:
    https://github.com/flutter/engine/blob/303e26e96561d9b76f2344e97a5fc32eb6dfdb9a/shell/platform/embedder/embedder.cc#L868-L881
    
    Issue: flutter/flutter#116381
    cbracken authored Dec 3, 2022
    Configuration menu
    Copy the full SHA
    cf05ab4 View commit details
    Browse the repository at this point in the history
Loading