Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a07105b7 authored by Romain Guy's avatar Romain Guy
Browse files

Better logging of out of memory errors in OpenGLRenderer.

Change-Id: I6b72a084340d8d4b6e0b0a100ed4314d09d441ef
parent c71ad30f
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1073,11 +1073,6 @@ public final class ViewRoot extends Handler implements ViewParent,
                            }
                        }
                        surfaceChanged = true;

                        if (mAttachInfo.mHardwareRenderer != null) {
                            // This will bail out early if already initialized
                            mAttachInfo.mHardwareRenderer.initialize(mHolder);
                        }
                    }
                    if (surfaceChanged) {
                        mSurfaceHolderCallback.surfaceChanged(mSurfaceHolder,
+5 −0
Original line number Diff line number Diff line
@@ -162,6 +162,11 @@ void OpenGLRenderer::finish() {
    GLenum status = GL_NO_ERROR;
    while ((status = glGetError()) != GL_NO_ERROR) {
        LOGD("GL error from OpenGLRenderer: 0x%x", status);
        switch (status) {
            case GL_OUT_OF_MEMORY:
                LOGE("  OpenGLRenderer is out of memory!");
                break;
        }
    }
#endif
#if DEBUG_MEMORY_USAGE