commit | 226fe6c926409f3b64b07f0b74e92e34cc0b515e | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Mon Oct 20 18:43:31 2014 -0400 |
committer | Leon Scroggins <scroggo@google.com> | Mon Oct 20 22:48:50 2014 +0000 |
tree | 156f905e0fcf24a0bdfdc26f4a9eb3ff96bfe92d | |
parent | 9f23a27ed9961fd4575864e590eda328452895e7 [diff] |
Check SkStream::isAtEnd before attempting to read. In FrontBufferedStream, when attempting to read and buffer more data, do not try to read if the underlying stream is at the end. Depends on a change to frameworks base (Idd462ff9055aea42e8c7d5d58ef177f9e667385b) to report the stream is at the end when it throws an exception. Prevents a bug where we continue trying to read a stream that has already failed. BUG:17873145 Change-Id: Ifcf9eac5da533c9966c37f6f4631251063e23ed1