class_docstr: OSMesa backend for Canvas
class_docstr_tok: ["OSMesa","backend","for","Canvas"]
code: def _vispy_set_size(self, w, h):
      self._pixels = osmesa.allocate_pixels_buffer(w, h)
      self._size = (w, h)
      self._vispy_canvas.events.resize(size=(w, h))
      self._vispy_set_current()
      self._vispy_update()
  
imports: from __future__ import division
  from ...util.ptime import time
  from ..base import BaseApplicationBackend, BaseCanvasBackend, BaseTimerBackend
  from ...gloo import gl
  from time import sleep
label_desc: Use image node_id 5 for calling the CanvasBackend obj's underlying member method code with example usage: obj._vispy_set_size(w, h) without return types