diff options
author | Zhijun He <zhijunhe@google.com> | 2016-02-25 16:00:38 -0800 |
---|---|---|
committer | Zhijun He <zhijunhe@google.com> | 2016-03-08 13:21:36 -0800 |
commit | 0ab416269a866c8afa8f65d9351afa2407abee4c (patch) | |
tree | 86bb96155a759d5d00670757d2c68780b075fe72 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 7ba6dc0fcc66c96383aabd8db40adf1bac66ce7f (diff) |
ImageReader/Writer: refactor and cleanup
Below changes are included:
* Defer the buffer lock to Image#getPlanes call. This will save quite a bit
CPU cycles associated with lock buffer if the application doesn't really
want to access the data.
* Refactor the code: move some common code to some utility class, and use
one unified consumer (BufferItemConsumer) in ImageReader native implementation.
The code refactoring will also make it easier to support non-opaque image
attach/detach.
Bug: 22356918
Bug: 19962027
Change-Id: I4fb865b0ea3deb6650afc64c32a5906f30e8ccbd
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions