OSDN Git Service

gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired
authorIgor Murashkin <iam@google.com>
Thu, 15 Aug 2013 01:49:12 +0000 (18:49 -0700)
committerIgor Murashkin <iam@google.com>
Thu, 15 Aug 2013 03:17:17 +0000 (20:17 -0700)
commita5b7513711555c8681eb9391cfafe30fb7d6dd3d
tree02e0c24fd8f010996887a97ed98ec8d4206f6401
parentc6bae007e6e29b585fc1207f84b378a480006173
gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired

- Return NOT_ENOUGH_DATA instead of INVALID_OPERATION when too many
  buffers have already been locked.
- INVALID_OPERATION is nominally used when something irrecoverable happens,
  but in this case the client just needs to call unlockBuffer to go back into a
  good state.

Bug: 10333400
Change-Id: I3a034d77de85741429f832a90eedd670afa1dc94
include/gui/CpuConsumer.h
libs/gui/CpuConsumer.cpp