示例#1
0
void
TopWindow::Refresh()
{
  if (!CheckResumeSurface())
    /* the application is paused/suspended, and we don't have an
       OpenGL surface - ignore all drawing requests */
    return;

  if (!invalidated.exchange(false, std::memory_order_relaxed))
    return;

  Expose();
}
示例#2
0
void
TopWindow::Refresh()
{
  if (!CheckResumeSurface())
    /* the application is paused/suspended, and we don't have an
       OpenGL surface - ignore all drawing requests */
    return;

  if (!invalidated)
    return;

  invalidated = false;

  Expose();
}
示例#3
0
void
TopWindow::refresh()
{
#ifdef ANDROID
  if (!CheckResumeSurface())
    /* the application is paused/suspended, and we don't have an
       OpenGL surface - ignore all drawing requests */
    return;
#endif

  Invalidated_lock.Lock();
  if (!Invalidated) {
    Invalidated_lock.Unlock();
    return;
  }

  Invalidated = false;
  Invalidated_lock.Unlock();

  Expose();
}