Unify lifetime handling for NativeWindow
and HardwareBuffer
#309
Labels
difficulty: average
Likely as difficult as most tasks here
priority: low
Nice to have
status: needs investigation
Issue must be confirmed and researched
type: enhancement
Wouldn't this be the coolest?
See #296 (comment), there are multiple ways we can approach this.
Something based on borrows (Like how
String
+&str
work together) has my preference, but we can't give any sensible lifetime to for example whatfn native_window()
returns (which we currently have to forcibly_acquire
to make it valid). Alas, we'll probably remove thosestatic
getters anyway in light of recent suggestions and to support multi-Activity
, so this specific case wouldn't affect us anymore. At which point a borrow-based approach might as well work out :)The text was updated successfully, but these errors were encountered: