commit | 33eab3a829fee3bc89e435e10ec581d87d68797c | [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 | 94f3ca87767fe84163012638053bf79ce01f693a [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