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

Commit 28b36007 authored by Steve Kondik's avatar Steve Kondik
Browse files

Add a missing QCOM_BSP ifdef

Change-Id: I9667a7494f9f562e2fd6be1bc5e87443ea94768a
parent b857867c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -604,6 +604,7 @@ status_t BufferQueue::queueBuffer(int buf,
        updatedGeometry.set(mNextBufferInfo.mWidth,
                            mNextBufferInfo.mHeight, mNextBufferInfo.mFormat);
        const sp<GraphicBuffer>& graphicBuffer(mSlots[buf].mGraphicBuffer);
#ifdef QCOM_BSP
        //  Update the geometry of this buffer without reallocation.
        if(isBufferGeometryUpdateRequired(graphicBuffer, updatedGeometry)) {
            status_t res = graphicBuffer->perform(graphicBuffer->handle,
@@ -620,6 +621,7 @@ status_t BufferQueue::queueBuffer(int buf,
                mSlots[buf].mEglDisplay = EGL_NO_DISPLAY;
            }
        }
#endif
        Rect bufferRect(graphicBuffer->getWidth(), graphicBuffer->getHeight());
        Rect croppedCrop;
        crop.intersect(bufferRect, &croppedCrop);
+4 −0
Original line number Diff line number Diff line
@@ -233,9 +233,13 @@ status_t GraphicBuffer::unlock()
status_t GraphicBuffer::perform(buffer_handle_t hnd, int operation,
                                uint32_t w, uint32_t h, PixelFormat format)
{
#ifdef QCOM_BSP
    status_t res = getBufferMapper().perform(hnd,
                   GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY, w, h, format);
    return res;
#else
    return 0;
#endif
}

size_t GraphicBuffer::getFlattenedSize() const {