summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* graphics.mapper@2.0: Document previously-implicit accessRegion behavior.Eino-Ville Talvala2019-03-281-0/+3
| | | | | | | | | | | | | | Existing Android framework code (and transitively, CTS test) require that an accessRegion of (0,0,0,0) is treated the same as an accessRegion covering the entire buffer, when calling lock() or lockYCbCr(). Document this so that there is no confusion about this going forward, since this requirement pre-dates the HIDL HALs. Bug: 119440345 Test: Builds Change-Id: Id16831d3da4ec3dc74dbdca18447581a50ee1193
* Adding negative slot index check in ComposerResourcesValerie Hau2019-03-271-2/+2
| | | | | | Bug: N/A Test: build, boot Change-Id: I8ab18ed8f7c322ee995abc534309b51e796276fe
* Accompany HardwareBuffer with generation numberPawin Vongmasa2019-03-191-5/+16
| | | | | | | | | | | | | | attachBuffer() should take a generation number and requestBuffer() should return a generation number because AHardwareBuffer does not carry the generation number. Test: make cts -j123 && cts-tradefed run cts-dev -m \ CtsMediaTestCases --compatibility:module-arg \ CtsMediaTestCases:include-annotation:\ android.platform.test.annotations.RequiresDevice Bug: 127778192 Change-Id: I201f84cf66f0e19b794a05c5ba88066360a37d96
* Merge "Moved brightness from Lights to SF."Michael Wright2019-03-127-4/+132
|\
| * Moved brightness from Lights to SF.Dan Gittik2019-03-087-4/+132
| | | | | | | | | | | | | | | | Test: manual. Check that brightness works. Fixes: 111435292 Change-Id: I3d19bc2fc4088bc9a956a5cf38c3b163fe35256f
* | Merge "bufferqueue@1.0: remove comment in function def" am: 5418f17004 am: ↵Steven Moreland2019-03-121-1/+1
|\ \ | |/ |/| | | | | | | | | | | 1b7da8b6bb am: 095414578e Change-Id: Ib83e63c4e21071c020de29b38c7898ac1a0e5cb7
| * bufferqueue@1.0: remove comment in function defSteven Moreland2019-03-091-1/+1
| | | | | | | | | | | | Bug: 124382459 Test: manual Change-Id: Ia99990d6ba3d50d81eb58735212142ec88a74293
* | Remove obsolete comments.Peiyong Lin2019-03-071-2/+0
| | | | | | | | | | | | BUG: 127850729 Test: N/A Change-Id: I6d45f30c129749a95050d3c046fbfe91d0a75f3e
* | Merge "Update makefies: no 'types' internal"Steven Moreland2019-03-053-17/+0
|\ \
| * | Update makefies: no 'types' internalSteven Moreland2019-03-043-17/+0
| | | | | | | | | | | | | | | | | | Bug: 123976090 Test: N/A Change-Id: I84b659b163b63d39535b462a3df8a9c19f680976
* | | Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6Steven Moreland2019-03-044-23/+0
|\ \ \ | |/ / |/| / | |/ | | | | am: 7224bc9bcf Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
| * Update makefies: no 'types'Steven Moreland2019-03-044-23/+0
| | | | | | | | | | | | Bug: 123976090 Test: N/A Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
* | [composer] Remove implication. am: 849c980804 am: b48a6fa60aPeiyong Lin2019-02-281-3/+3
|\| | | | | | | | | | | am: d581ab1940 Change-Id: I5c38b7a6b15fbb52d11e27e334dd03c54784de35
| * [composer] Remove implication.Peiyong Lin2019-02-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | The spec of setLayerDataspace never specifies the types of layer it should be call on, however, the spec has the implication that this method will only work for layers with buffer, which is mis-leading. This patch changes the wording of setLayerDataspace spec, removes the implication. Note that this change won't break backward compatability. BUG: 126713799 Test: N/A Change-Id: I97f22469897cb687dcb64a3d419bcb48a3668e5a
* | Update makefiles.Steven Moreland2019-02-111-0/+3
| | | | | | | | | | | | Bug: 123976090 Test: N/A Change-Id: I5fb6c126a090a3fe0fa4829ea9224564133dc1ae
* | Camera: Add HAL interface change for HEICShuzhen Wang2019-02-041-0/+38
| | | | | | | | | | | | | | | | | | | | | | - Add new usage flag to indicate the consumer of the buffer is HEIC encoder. - Add new data space to indicate that the BLOB buffer is HEIC encoded. - Add new BlobId to specify JPEG APPs segments. Test: testHeic CTS test Bug: 79465976 Change-Id: Iaa6a1d017223e84fc1c5dd0a9d90d9f09240e827
* | Merge "Camera: Add dynamic depth tags and dataspace"TreeHugger Robot2019-01-281-0/+7
|\ \
| * | Camera: Add dynamic depth tags and dataspaceEmilian Peev2019-01-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add necessary metadata tags for supporting dynamic depth streams. Includes minor gfx fix which should help eliminate build errors after HIDL header autogen. Bug: 109735087 Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO Change-Id: Ia476b195095ae7a29bc740174331dfbfdaa6d320
* | | Add interface tagHuihong Luo2019-01-281-0/+1
|/ / | | | | | | | | | | | | | | so other components can start the hal interface when needed. Test: manual Change-Id: I61a4d396e86ec8dbda2cbabcc7afca7be7628f26 (cherry picked from commit c4f493977b6315d3dfe8e05f0c2516e2b00feca4)
* | graphics.common: add HSV format definition to 1.2Kevin DuBois2019-01-257-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds HSV format used in some color sampling engines to the list of pixel formats. Rev the sampling engine in composer to reference the new format revision. Test: built image, with new format reported in vendor code. Test: VtsHalGraphicsComposerV2_3TargetTest Fixes: 122943743 Roll-forward of build-breaking topic commit. No changes were needed in this patch. see bug 123404649 for breakage details. This reverts commit e2f69f22289ffadc8dcfdbb476422e194442253a. Change-Id: I38ac5cafeb6a07e683352c8d297892a681e24702
* | Merge "Revert "graphics.common: add HSV format definition to 1.2""Kevin DuBois2019-01-257-27/+12
|\ \
| * | Revert "graphics.common: add HSV format definition to 1.2"Kevin DuBois2019-01-257-27/+12
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 97e1a932ec52ce49e4c51527a6fce78bfa810294. Reason for revert: broke build Change-Id: Ib264957e9a1de83c37e4129471b3c75522e21d08
* | | Merge "graphics.common: add HSV format definition to 1.2"Kevin DuBois2019-01-257-12/+27
|\| |
| * | graphics.common: add HSV format definition to 1.2Kevin DuBois2019-01-247-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds HSV format used in some color sampling engines to the list of pixel formats. Rev the sampling engine in composer to reference the new format revision. Test: built image, with new format reported in vendor code. Test: VtsHalGraphicsComposerV2_3TargetTest Fixes: 122943743 Change-Id: I1b454a86f464f38e3c2cbeef5379a187ff38ab06
* | | Merge "mapper-passthrough: filter two usages for gralloc1"Sean Callanan2019-01-241-1/+13
|\ \ \
| * | | mapper-passthrough: filter two usages for gralloc1Sean Callanan2019-01-171-1/+13
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | GPU_CUBE_MAP and GPU_MIPMAP_COMPLETE both do not exist in gralloc1, so don't try to allocate buffers that have those usages. Report an error instead. Bug: 66876469 Test: CTSNativeHardwareTestCases on Taimen Change-Id: I1a6bd209faf5ffad93dbac0ab887bb1447a44aac
* | | allocator: require optimal allocationsMarissa Wall2019-01-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a clarification the documentation that all buffer allocations should be optimized for the usage bits provided in the descriptor. This was always assumed to be a requirement of buffer allocations but it was not explicitly documented. Bug: 120493579 Test: N/A Change-Id: Id9e3e1df861d0f32c995f18cabe37d62e7e5ce5c
* | | mapper: add isSupportedMarissa Wall2019-01-224-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a function to the mapper hal that checks if a BufferDescriptorInfo is ever supported on a device. This value can be cached by the client. The client can use this information to make decisions on what type of buffers should attempt to allocate. Bug: 120493579 Test: vts Change-Id: I6bd7909e40d6462524bf49cf0d4e7af721e701ed
* | | mapper: update lock's return valuesMarissa Wall2019-01-224-6/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Require mapper to return more information when locking a buffer. Opaque vendor formats make it difficult to manipulate a locked buffer. The pointer to the buffer's data is always at the top left hand corner of the buffer. It can be impossible to know where the locked region begins. The mapper now must return the bytes per pixel and bytes per stride of a locked buffer when the values are consistent and known. Bug: 120493579 Test: vts Change-Id: Id0921f191f1e388d4950ecef73acab6a34010dc4
* | | mapper: update documentation on lockingMarissa Wall2019-01-221-0/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | Update the locking documentation to require all 1D buffers "lock in place". Previously, the framework was able to get 1D buffers that locked in place via ion. The ion interface is no longer directly accessible. Some framework use cases still need 1D buffers that lock in place so add the requirement to mapper. Bug: 120493579 Test: N/A Change-Id: Ib903efdbeeb8c44ed70c3c6022d6792d05df1a63
* | Merge changes from topic "IA/IM-3.0"TreeHugger Robot2019-01-1517-12/+1391
|\ \ | | | | | | | | | | | | | | | * changes: graphics: change composer 2.1 to support allocator/mapper 3.0 graphics: rev IAllocator and IMapper
| * | graphics: change composer 2.1 to support allocator/mapper 3.0Marissa Wall2019-01-125-12/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change composer 2.1's ComposerResources to support the new major versions of IAllocator and IMapper. Bug: 120493579 Test: vts Change-Id: I888364d302ba8c7f7ad30070dcad3ed738b4c663
| * | graphics: rev IAllocator and IMapperMarissa Wall2019-01-1212-0/+1345
| | | | | | | | | | | | | | | | | | | | | | | | | | | Increase IAllocator and IMapper to 3.0. This patch does not add any new features. Bug: 120493579 Test: vts Change-Id: I84d9887f94d91eca1cc5d845bb11ac1d8affbf62
* | | Fix comparator operator() definition. am: a6a529236e am: 3df110feaeDan Albert2019-01-132-4/+4
|\ \ \ | | |/ | |/| | | | | | | | | | am: b21cdfb866 Change-Id: Id0f1912c6b05481f5d720a490cb7044d7accfc26
| * | Fix comparator operator() definition.Dan Albert2019-01-112-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Comparators should be const. The libc++ update checks for this and rejects non-const comparators. Test: m Bug: None Change-Id: If2f76c020943b5bcb55803f0742990c9965afd6e
* | | graphics: update owners am: 104ecb9e60 am: af56d35175Marissa Wall2019-01-1114-17/+23
|\| | | | | | | | | | | | | | | | | am: 88d9ae03c4 Change-Id: I596f312798b61afe4a6f12d293e2de95b6e2d193
| * | graphics: update ownersMarissa Wall2019-01-1014-17/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With olv@ no longer on the graphics team we need to update the owners file to remove him and add new owners. For composer the new owners are: lpy@ and vhau@ For allocator/mapper the new owner is: marissaw@ Test: N/A Change-Id: Ied297e9446d480629155e1d9a96575ee518c2135
* | | Merge "graphics: update owners"TreeHugger Robot2019-01-111-1/+2
|\ \ \
| * | | graphics: update ownersMarissa Wall2019-01-103-3/+6
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | With olv@ no longer on the graphics team we need to update the owners file to remove him and add new owners. For composer the new owners are: lpy@ and vhau@ For allocator/mapper the new owner is: marissaw@ Test: N/A Change-Id: Icc8931966e13520526174752c56a21060c8054f8
* | | Merge "[Graphics] Add lpy@ and vhau@ to OWNER file."TreeHugger Robot2019-01-042-2/+4
|\ \ \
| * | | [Graphics] Add lpy@ and vhau@ to OWNER file.Peiyong Lin2018-12-052-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | BUG: N/A Test: N/A Change-Id: Ifca0bb859d7f2b970638627321921e1c439678bb
* | | | Adding/modifying tests for new 2.3 APIValerie Hau2019-01-021-2/+35
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Adding new tests for getPerFrameMetadataKeys_2_3 and getHdrCapabilities_2_3. Modifying for optional API to not error on UNSUPPORTED Bug: 118343714 Test: ./VtsHalGraphicsComposerV2_3TargetTest Change-Id: I66e28cc1cb51b8c26d3e7777311a168086f938ca
* | | Adding HDR10+ Dynamic Metadata SupportValerie Hau2018-12-2011-7/+501
| | | | | | | | | | | | | | | | | | | | | Bug: 118343714 Test: build, flash, boot Test: VtsGraphicsComposerV2_3TargetTest should pass Change-Id: Iee78818bc2704f4045b62251ea2cc75af72a0609
* | | Merge "Fix performance-for-range-copy warnings" am: d01f7050ac am: 51e835ce22Chih-hung Hsieh2018-12-171-2/+2
|\ \ \ | | |/ | |/| | | | | | | | | | am: 86fefab5e9 Change-Id: Ib139d710d47a7a51e24ba8ba582b252f5ff6e244
| * | Fix performance-for-range-copy warningsChih-Hung Hsieh2018-12-171-2/+2
| | | | | | | | | | | | | | | | | | Bug: 30413223 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance* Change-Id: I1b76a22eab100a31e77048626e48169fe7eeaf92
| * | Merge "HWC2OnFbAdapter: don't claim present fences work"Treehugger Robot2018-12-122-3/+34
| |\ \
| | * | HWC2OnFbAdapter: don't claim present fences workChris Forbes2018-12-112-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We never produce real present fences, so indicate this to the compositor. This will prevent GOOGLE_display_timing & friends from being exposed in the client APIs. Similar to previous change in HWC2On1Adapter. Bug: b/111505197 Change-Id: I601a7f5628d4b218431fc0f1abb4807c9941ce64 (cherry picked from commit 3fac35a98ae8dcc2b475c8a5b7f031c031d011a7)
| * | | pack VTS cc_test binaries as general-testsKeun Soo YIM2018-12-074-0/+4
| |/ / | | | | | | | | | | | | | | | | | | Test: make general-tests Bug: 120093339 Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4 Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
| * | Merge pi-dr1-dev to aosp-masterBill Yi2018-10-191-0/+1
| |\ \ | | | | | | | | | | | | Change-Id: Ida0bc98526f4fc7a1c20f5bbd3210b2f6156d459
| | * \ Merge "[Graphics] Only validate display in PresentOrValidateDisplay."Peiyong Lin2018-09-064-11/+30
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | am: 0a0fa7209e Change-Id: I174b127b17f6e9c2198da681f8272b26b110139d