summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorZhijun He <zhijunhe@google.com>2016-02-25 16:00:38 -0800
committerZhijun He <zhijunhe@google.com>2016-03-08 13:21:36 -0800
commit0ab416269a866c8afa8f65d9351afa2407abee4c (patch)
tree86bb96155a759d5d00670757d2c68780b075fe72 /tools/aapt2/java/JavaClassGenerator.cpp
parent7ba6dc0fcc66c96383aabd8db40adf1bac66ce7f (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