Loading libs/hwui/renderthread/CanvasContext.cpp +5 −3 Original line number Original line Diff line number Diff line Loading @@ -513,9 +513,11 @@ void CanvasContext::draw() { // Called by choreographer to do an RT-driven animation // Called by choreographer to do an RT-driven animation void CanvasContext::doFrame() { void CanvasContext::doFrame() { if (CC_UNLIKELY(!mCanvas || mEglSurface == EGL_NO_SURFACE)) { #if HWUI_NEW_OPS return; if (CC_UNLIKELY(mEglSurface == EGL_NO_SURFACE)) return; } #else if (CC_UNLIKELY(!mCanvas || mEglSurface == EGL_NO_SURFACE)) return; #endif prepareAndDraw(nullptr); prepareAndDraw(nullptr); } } Loading Loading
libs/hwui/renderthread/CanvasContext.cpp +5 −3 Original line number Original line Diff line number Diff line Loading @@ -513,9 +513,11 @@ void CanvasContext::draw() { // Called by choreographer to do an RT-driven animation // Called by choreographer to do an RT-driven animation void CanvasContext::doFrame() { void CanvasContext::doFrame() { if (CC_UNLIKELY(!mCanvas || mEglSurface == EGL_NO_SURFACE)) { #if HWUI_NEW_OPS return; if (CC_UNLIKELY(mEglSurface == EGL_NO_SURFACE)) return; } #else if (CC_UNLIKELY(!mCanvas || mEglSurface == EGL_NO_SURFACE)) return; #endif prepareAndDraw(nullptr); prepareAndDraw(nullptr); } } Loading