commit | a4d2f1bb12ce7f84686f03deea17ad7db05c40e4 | [log] [tgz] |
---|---|---|
author | Jesse Hall <jessehall@google.com> | Fri Mar 24 13:16:27 2017 -0700 |
committer | Jesse Hall <jessehall@google.com> | Tue Mar 28 08:22:54 2017 -0700 |
tree | 3a3d0370ad36d21b69b02e74d02665d109249e68 | |
parent | dd1c96e2a5e7b6f93285b6b3285c1094e3fdf7e1 [diff] |
Add gralloc usage conversion functions Converting gralloc1 / ..graphics.allocator@2.0 usage to gralloc0 usage requires more than just ORing bits and truncating: the CPU_READ_OFTEN bits don't match up correctly. Add utility functions for converting back and forth which handle this properly. Test: boot bullhead-eng Change-Id: I1cee972feaea486d5607c60acead2e870c2c9549