am de288fe2: Revert "bufferqueue: workaround: allow NULL fence with queueBuffer"

* commit 'de288fe2d43adfa1b2243ae534faaf832bf50491':
  Revert "bufferqueue: workaround: allow NULL fence with queueBuffer"
This commit is contained in:
Jesse Hall 2014-11-04 17:35:22 +00:00 committed by Android Git Automerger
commit aa4ccfd123

View File

@ -523,12 +523,7 @@ status_t BufferQueueProducer::queueBuffer(int slot,
if (fence == NULL) {
BQ_LOGE("queueBuffer: fence is NULL");
// 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;
return BAD_VALUE;
}
switch (scalingMode) {