fn update_texture(&self) {
        let (tw, th) = self.canvas.texture_size();
        let texture = self.canvas.texture_data();
        self.data.borrow().set_texture_data(tw, th, &texture);
    }
/// Write the current texture in the shared memory
Write the current texture in the shared memory
Write the current texture in the shared memory
fn update_texture(&self) {
        let (tw, th) = self.canvas.texture_size();
        let texture = self.canvas.texture_data();
        self.data.borrow().set_texture_data(tw, th, &texture);
    }
fn update_texture ( & self ) { let ( tw , th ) = self . canvas . texture_size ( ) ; let texture = self . canvas . texture_data ( ) ; self . data . borrow ( ) . set_texture_data ( tw , th , & texture ) ; }
Write the current texture in the shared memory
Write the current texture in the shared memory
&self