OSDN Git Service

Use bytesWritten instead of getOffset on SkDynamicMemoryWStream.
authorBen Wagner <bungeman@google.com>
Thu, 15 Dec 2016 23:06:03 +0000 (18:06 -0500)
committerBen Wagner <bungeman@google.com>
Thu, 15 Dec 2016 23:06:03 +0000 (18:06 -0500)
commitbffb70b3f0625fa077402edf9ff46ddc751e6401
tree163b8e77700ef81f72e49d1b8dc8574ab452c64b
parent0306c40dfc190f5965fe1d9f5a458811db6eaf31
Use bytesWritten instead of getOffset on SkDynamicMemoryWStream.

These two methods do the same thing and bytesWritten makes more sense
and is also a proper SkWStream override. As a result, getOffset is being
removed. This updates the calling code.

Test: refactoring CL. Existing unit tests still pass.
Change-Id: I2e2b60c1c86d07c5ab7ec6518d689e8bf700e5d2
camera/JpegStub.cpp