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(); }
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(); }
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(); }