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

Commit 88a459a9 authored by Dan Stoza's avatar Dan Stoza
Browse files

VirtualDisplaySurface: no attach/detach support

Change-Id: I630dd6e352940318c33a4e072d2f33a6ec58c556
parent c9ed7d37
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -374,13 +374,15 @@ status_t VirtualDisplaySurface::dequeueBuffer(int* pslot, sp<Fence>* fence, bool
    return result;
}

status_t VirtualDisplaySurface::detachBuffer(int slot) {
    return mSource[SOURCE_SINK]->detachBuffer(slot);
status_t VirtualDisplaySurface::detachBuffer(int /* slot */) {
    VDS_LOGE("detachBuffer is not available for VirtualDisplaySurface");
    return INVALID_OPERATION;
}

status_t VirtualDisplaySurface::attachBuffer(int* outSlot,
        const sp<GraphicBuffer>& buffer) {
    return mSource[SOURCE_SINK]->attachBuffer(outSlot, buffer);
status_t VirtualDisplaySurface::attachBuffer(int* /* outSlot */,
        const sp<GraphicBuffer>& /* buffer */) {
    VDS_LOGE("attachBuffer is not available for VirtualDisplaySurface");
    return INVALID_OPERATION;
}

status_t VirtualDisplaySurface::queueBuffer(int pslot,