(&mut self, vec: *mut RGBA, w: usize, h: usize)
| 213 | } |
| 214 | |
| 215 | pub fn update(&mut self, vec: *mut RGBA, w: usize, h: usize) { |
| 216 | self.pixels = unsafe { Vec::from_raw_parts(vec, h * w, w * h) }; |
| 217 | self.w = w; |
| 218 | self.h = h; |
| 219 | } |
| 220 | |
| 221 | pub fn share(&mut self) -> FBShare { |
| 222 | FBShare { |
nothing calls this directly
no outgoing calls
no test coverage detected