Lines Matching refs:swapBehavior
119 mSwapBehavior = SwapBehavior::BufferAge;
121 mSwapBehavior = SwapBehavior::Preserved;
149 EGLint swapBehavior = (mSwapBehavior == SwapBehavior::Preserved)
160 EGL_SURFACE_TYPE, EGL_WINDOW_BIT | swapBehavior,
167 if (mSwapBehavior == SwapBehavior::Preserved) {
170 mSwapBehavior = SwapBehavior::Discard;
232 if (mSwapBehavior != SwapBehavior::Preserved) {
289 case SwapBehavior::Discard:
291 case SwapBehavior::Preserved:
293 case SwapBehavior::BufferAge:
316 if (EglExtensions.setDamage && mSwapBehavior == SwapBehavior::BufferAge) {
328 return EglExtensions.setDamage && mSwapBehavior == SwapBehavior::BufferAge;
369 if (mSwapBehavior != SwapBehavior::Preserved) return false;
377 EGLint swapBehavior;
378 if (eglQuerySurface(mEglDisplay, surface, EGL_SWAP_BEHAVIOR, &swapBehavior)) {
379 preserved = (swapBehavior == EGL_BUFFER_PRESERVED);