Commit graph

9 commits

Author SHA1 Message Date
Doug Horn
b0719e3aee Merge "Build both static and shared lib." 2018-09-25 22:29:31 +00:00
Jesse Hall
f0fc98cf13 Add libgrallocusage/OWNERS
Test: none
Change-Id: Ie1a0384f91f0a13167c5b18416d7da505ab41825
2018-09-25 13:33:35 -07:00
Doug Horn
2306f46f9a Build both static and shared lib.
Bug: 111611872
Test: Compile, verify output.
Change-Id: I3a8ce3dbad2738e376a131a8e8613b3a4f6bf033
2018-09-25 10:56:25 -07:00
Chih-Hung Hsieh
122352d983 Use -Werror in system/core
* Move -Wall -Werror from cppflags to cflags.
* Fix/suppress warning on unused variables.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I1e05e96a1d0bcb2ccef1ce456504b3af57167cc5
2017-11-01 11:32:55 -07:00
Jiyong Park
684ad96c27 Mark libgrallocusage as vendor_available
libgrallocusage is used by libui which will be vendor_available: true.

Test: BOARD_VNDK_VERSION=current m libgrallocusage is successful
Change-Id: I476768d8b103033f3b8e5b09f53f4ac422ae377c
2017-05-04 12:25:43 +09:00
Chia-I Wu
1e29643f13 libgrallocusage: use gralloc1.h usage flags
android/hardware/graphics/allocator/2.0/types.h is gone.  Use usage
flags from gralloc1.h.

Test: make
Change-Id: I43bc641edf86229d2df75dba857d7b5706df70e4
2017-04-10 09:47:34 -07:00
Yin-Chia Yeh
164ec4ad26 Revert "Include vendor gralloc0 flags in gralloc1 conversion."
This reverts commit 944e5e0c52.

Test: fix b/36876770
Bug: b/36876770
Change-Id: Ibbf1a5e04ff1f61061cf0bb679306324d1f543d3
2017-04-04 13:17:54 -07:00
Eino-Ville Talvala
944e5e0c52 Include vendor gralloc0 flags in gralloc1 conversion.
Map GRALLOC_USAGE_PRIVATE_* fields into bits 28-31 of both producer
and consumer usage for gralloc1.

Test: Camera output works as normal, CTS not regressed
Bug: 35215313
Change-Id: I0736e0f513b193373b822830dbb0efe3f4263770
2017-03-29 12:08:55 -07:00
Jesse Hall
33eab3a829 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
2017-03-28 08:22:54 -07:00