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

Commit f35a5ba6 authored by Jesse Hall's avatar Jesse Hall Committed by Android Git Automerger
Browse files

am 649bafb7: Merge "bufferqueue: workaround: allow NULL fence with queueBuffer...

am 649bafb7: Merge "bufferqueue: workaround: allow NULL fence with queueBuffer (DO NOT MERGE)" into lmp-dev

* commit '649bafb7':
  bufferqueue: workaround: allow NULL fence with queueBuffer (DO NOT MERGE)
parents 433fe2af 649bafb7
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -522,7 +522,12 @@ status_t BufferQueueProducer::queueBuffer(int slot,


    if (fence == NULL) {
    if (fence == NULL) {
        BQ_LOGE("queueBuffer: fence is NULL");
        BQ_LOGE("queueBuffer: fence is NULL");
        return BAD_VALUE;
        // Temporary workaround for b/17946343: soldier-on instead of returning an error. This
        // prevents the client from dying, at the risk of visible corruption due to hwcomposer
        // reading the buffer before the producer is done rendering it. Unless the buffer is the
        // last frame of an animation, the corruption will be transient.
        fence = Fence::NO_FENCE;
        // return BAD_VALUE;
    }
    }


    switch (scalingMode) {
    switch (scalingMode) {