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

Commit df7e6ea0 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

reduce IPCs in BufferQueue

Change-Id: I1f8c32a771a411476d225adc62d1f07c24f39a3e
parent ecdd39c5
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -101,6 +101,7 @@ public:
    // (zero point, etc) are client-dependent and should be documented by the
    // client.
    virtual status_t queueBuffer(int buf, int64_t timestamp,
            const Rect& crop, int scalingMode, uint32_t transform,
            uint32_t* outWidth, uint32_t* outHeight, uint32_t* outTransform);
    virtual void cancelBuffer(int buf);

@@ -111,13 +112,8 @@ public:
    // Make sure this is called when the mutex is locked
    virtual status_t onFrameReceivedLocked();

    virtual status_t setScalingMode(int mode) { return OK; } // no op for encoding
    virtual int query(int what, int* value);

    // Just confirming to the ISurfaceTexture interface as of now
    virtual status_t setCrop(const Rect& reg) { return OK; }
    virtual status_t setTransform(uint32_t transform) {return OK;}

    // setSynchronousMode set whether dequeueBuffer is synchronous or
    // asynchronous. In synchronous mode, dequeueBuffer blocks until
    // a buffer is available, the currently bound buffer can be dequeued and
+1 −0
Original line number Diff line number Diff line
@@ -460,6 +460,7 @@ status_t SurfaceMediaSource::disconnect(int api) {
}

status_t SurfaceMediaSource::queueBuffer(int bufIndex, int64_t timestamp,
        const Rect& crop, int scalingMode, uint32_t transform,
        uint32_t* outWidth, uint32_t* outHeight, uint32_t* outTransform) {
    ALOGV("queueBuffer");