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

Commit dfa285e0 authored by Jim Shargo's avatar Jim Shargo
Browse files

hostgraphics: Add 'detachBuffer' stub

We don't support these, but they're used in some places. Not having any
API can cause certain builds to break.

Bug: n/a
Flag: EXEMPT unsupported code
Test: builds
Change-Id: I2996b3e8cb0d06db0c4d1988570a84d2d166f904
parent 437af864
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
#include <gui/ConsumerBase.h>
#include <gui/IGraphicBufferConsumer.h>
#include <gui/Surface.h>
#include <ui/GraphicBuffer.h>
#include <utils/RefBase.h>

namespace android {
@@ -89,6 +90,10 @@ public:
        return OK;
    }

    status_t detachBuffer(const sp<GraphicBuffer>& buffer) {
        return OK;
    }

    status_t discardFreeBuffers() {
        return OK;
    }