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

Commit f10b05c6 authored by Chia-I Wu's avatar Chia-I Wu
Browse files

libgui: remove unused GLConsumer methods

doGLFenceWait has no user since commit 97eba890.  isExternalFormat
has no user since commit 1f8e09f4.

Test: builds
Change-Id: I9ea788e9411f2bcf1fcdfb1b1113d6c7cec186b7
parent a81bc497
Loading
Loading
Loading
Loading
+0 −24
Original line number Diff line number Diff line
@@ -758,25 +758,6 @@ status_t GLConsumer::syncForReleaseLocked(EGLDisplay dpy) {
    return OK;
}

bool GLConsumer::isExternalFormat(PixelFormat format)
{
    switch (format) {
    // supported YUV formats
    case HAL_PIXEL_FORMAT_YV12:
    // Legacy/deprecated YUV formats
    case HAL_PIXEL_FORMAT_YCbCr_422_SP:
    case HAL_PIXEL_FORMAT_YCrCb_420_SP:
    case HAL_PIXEL_FORMAT_YCbCr_422_I:
        return true;
    }

    // Any OEM format needs to be considered
    if (format>=0x100 && format<=0x1FF)
        return true;

    return false;
}

uint32_t GLConsumer::getCurrentTextureTarget() const {
    return mTexTarget;
}
@@ -1006,11 +987,6 @@ std::shared_ptr<FenceTime> GLConsumer::getCurrentFenceTime() const {
    return mCurrentFenceTime;
}

status_t GLConsumer::doGLFenceWait() const {
    Mutex::Autolock lock(mMutex);
    return doGLFenceWaitLocked();
}

status_t GLConsumer::doGLFenceWaitLocked() const {

    EGLDisplay dpy = eglGetCurrentDisplay();
+0 −7
Original line number Diff line number Diff line
@@ -197,11 +197,6 @@ public:
    // buffer is ready to be read from.
    std::shared_ptr<FenceTime> getCurrentFenceTime() const;

    // doGLFenceWait inserts a wait command into the OpenGL ES command stream
    // to ensure that it is safe for future OpenGL ES commands to access the
    // current texture buffer.
    status_t doGLFenceWait() const;

    // setConsumerUsageBits overrides the ConsumerBase method to OR
    // DEFAULT_USAGE_FLAGS to usage.
    status_t setConsumerUsageBits(uint64_t usage);
@@ -259,8 +254,6 @@ protected:
        return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence);
    }

    static bool isExternalFormat(PixelFormat format);

    struct PendingRelease {
        PendingRelease() : isPending(false), currentTexture(-1),
                graphicBuffer(), display(nullptr), fence(nullptr) {}