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

Commit 952f9955 authored by ning xu's avatar ning xu
Browse files

Fixes broken build on crosshatch-userdebug when enable LOG_NDEBUG



Bug: 204795912
Test: enable LOG_NDEBUG in VirtualDisplaySurface.cpp,no broken build occures
Change-Id: I84622ff60e128729ee1d239d5209e4510e709326
Signed-off-by: default avatar <xuning5&lt;xuning5@xiaomi.com>
parent 53cb0241
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -326,7 +326,7 @@ status_t VirtualDisplaySurface::setAsyncMode(bool async) {

status_t VirtualDisplaySurface::dequeueBuffer(Source source,
        PixelFormat format, uint64_t usage, int* sslot, sp<Fence>* fence) {
    LOG_FATAL_IF(GpuVirtualDisplayId::tryCast(mDisplayId));
    LOG_ALWAYS_FATAL_IF(GpuVirtualDisplayId::tryCast(mDisplayId).has_value());

    status_t result =
            mSource[source]->dequeueBuffer(sslot, fence, mSinkBufferWidth, mSinkBufferHeight,
@@ -641,7 +641,7 @@ void VirtualDisplaySurface::resetPerFrameState() {
}

status_t VirtualDisplaySurface::refreshOutputBuffer() {
    LOG_FATAL_IF(GpuVirtualDisplayId::tryCast(mDisplayId));
    LOG_ALWAYS_FATAL_IF(GpuVirtualDisplayId::tryCast(mDisplayId).has_value());

    if (mOutputProducerSlot >= 0) {
        mSource[SOURCE_SINK]->cancelBuffer(