OSDN Git Service

Use gralloc usage conversion library
authorJesse Hall <jessehall@google.com>
Thu, 23 Mar 2017 23:40:59 +0000 (16:40 -0700)
committerJesse Hall <jessehall@google.com>
Tue, 28 Mar 2017 15:23:21 +0000 (08:23 -0700)
commit66ee1771a66afae08b2b8d5aad51c86cade347ee
treee44e7f6918378529366464c53f3cedd6c1b5bc31
parent1445e3633a7520c62aa2f81b3c0c5637edf3c7c3
Use gralloc usage conversion library

Converting from ..graphics.allocator@2.0 usage to gralloc0 usage isn't
quite as simple as ORing and truncating, which is what the default
implementation was doing. Switch to using library functions that do it
correctly.

Test: boot bullhead
Change-Id: I40ae00e9aad92b374f281569207972b7461a3e55
graphics/allocator/2.0/default/Android.bp
graphics/allocator/2.0/default/Gralloc1On0Adapter.cpp