Commit 22ba885
committed
Don't document zero-initializing
That the buffer is zeroed when `age == 0` is not guaranteed, e.g. on
many platforms (Wayland, X11, Web), when we resize the buffer, we don't
also clear it.
We could technically guarantee something like "if the buffer's
underlying data could not be reused, the buffer is zero-initialized",
but that's not really useful to users (at least not unless we expose
additional information in `Buffer::age`).
This might also make it easier to use zero-copying on Android (might be
able to avoid having to clear the buffer).1 parent 672d180 commit 22ba885
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
0 commit comments