Loading libs/hwui/renderthread/EglManager.cpp +4 −5 Original line number Original line Diff line number Diff line Loading @@ -105,12 +105,11 @@ bool EglManager::hasEglContext() { void EglManager::requireGlContext() { void EglManager::requireGlContext() { LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "No EGL context"); LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "No EGL context"); // We don't care *WHAT* surface is active, just that one is active to give // We can't be certain about the state of the current surface (whether // us access to the GL context // or not it is destroyed, for example), so err on the side of using if (mCurrentSurface == EGL_NO_SURFACE) { // the pbuffer surface which we fully control usePBufferSurface(); usePBufferSurface(); } } } void EglManager::loadConfig() { void EglManager::loadConfig() { EGLint swapBehavior = mCanSetPreserveBuffer ? EGL_SWAP_BEHAVIOR_PRESERVED_BIT : 0; EGLint swapBehavior = mCanSetPreserveBuffer ? EGL_SWAP_BEHAVIOR_PRESERVED_BIT : 0; Loading Loading
libs/hwui/renderthread/EglManager.cpp +4 −5 Original line number Original line Diff line number Diff line Loading @@ -105,12 +105,11 @@ bool EglManager::hasEglContext() { void EglManager::requireGlContext() { void EglManager::requireGlContext() { LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "No EGL context"); LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "No EGL context"); // We don't care *WHAT* surface is active, just that one is active to give // We can't be certain about the state of the current surface (whether // us access to the GL context // or not it is destroyed, for example), so err on the side of using if (mCurrentSurface == EGL_NO_SURFACE) { // the pbuffer surface which we fully control usePBufferSurface(); usePBufferSurface(); } } } void EglManager::loadConfig() { void EglManager::loadConfig() { EGLint swapBehavior = mCanSetPreserveBuffer ? EGL_SWAP_BEHAVIOR_PRESERVED_BIT : 0; EGLint swapBehavior = mCanSetPreserveBuffer ? EGL_SWAP_BEHAVIOR_PRESERVED_BIT : 0; Loading