summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* 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 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
* 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
| * \ Merge "Update makefiles after native handle in Java."Steven Moreland2018-08-141-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | am: 1847a2f2e7 Change-Id: I0f981009b2129436872e1e05a06c381c47701fdb
| * \ \ Revert "graphics: restart HWC when SurfaceFlinger stops"Daniel Solomon2018-06-221-5/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | am: a6f6fd7400 Change-Id: I5a241ea6ee77ee18b865ae150c7abe05c6a19061
| * \ \ \ Merge "Add hwcomposer to the system-background cpuset for hal v2.2" into pi-devCarmen Jackson2018-06-191-0/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f053b3de23 Change-Id: Iab3ceb5c8d33786c851a162716fd9fffdc13f215
| | * | | | Add hwcomposer to the system-background cpuset for hal v2.2Carmen Jackson2018-06-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change was made for hal v2.1 but not cross-ported to 2.2. Bug: 110167043 Test: $ adb shell ps -A | grep composer system 630 ... android.hardware.graphics.composer@2.2-service $ adb shell cat /proc/630/cpuset /system-background Change-Id: I40b8a0386a7cf67fe64b1e0e40d81b78891faaca
* | | | | | graphics: composer@2.2 does not require mapper@2.1Chia-I Wu2018-10-191-6/+6
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | am: 0eafa742c6 Change-Id: I6f045113a3c0218a4b8f2c8e794892a21c1fc306
| * | | | | graphics: composer@2.2 does not require mapper@2.1Chia-I Wu2018-10-181-6/+6
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix composer@2.2 VTS to not require mapper@2.1. We will need a better test infra before things get too complex. Bug: 112248843 Test: manual Change-Id: Ia71a102742fd26f14e8edf3f43f3351786350ccd Merged-In: Ia71a102742fd26f14e8edf3f43f3351786350ccd
* | | | | [Graphics] Only validate display in PresentOrValidateDisplay.Peiyong Lin2018-08-294-11/+30
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we require display to be validated in onRefresh, however, onRefresh can be called while validateDisplay is executing, results in next presentDisplay being skipped. This patch makes sure we don't check validation state when presentDisplay is called. BUG: 80063800 Test: build, flash, boot and play Youtube videos. Change-Id: I3d8686db3274436afb6605812641768296f1af0e Merged-In: I3d8686db3274436afb6605812641768296f1af0e
* | | | Update makefiles after native handle in Java.Steven Moreland2018-08-141-1/+1
| |_|/ |/| | | | | | | | | | | | | | Bug: 35098567 Test: N/A Change-Id: I54b8d804e480cda09806f8028b966f28c4bd706e
* | | Revert "graphics: restart HWC when SurfaceFlinger stops"Daniel Solomon2018-06-221-5/+1
| |/ |/| | | | | | | | | | | | | This reverts commit 399a5b8d60dd845b86c43cf4de55dda4d47384c6; this change is no longer needed and is causing instability on some devices. Bug: 74199279 Change-Id: Ia8ee7ae0958df029beac9eb1d343995c54fa8798
* | Merge "SetColorMode is not available for vendor hwc less than 1.4" into pi-devhuans2018-06-051-11/+13
|\| | | | | | | | | | | am: 308d390720 Change-Id: I912853f863d6bf18c09f7385b099e2a7d0d7030b
| * Merge "SetColorMode is not available for vendor hwc less than 1.4" into pi-devTreeHugger Robot2018-06-061-11/+13
| |\
| | * SetColorMode is not available for vendor hwc less than 1.4huans2018-06-011-11/+13
| | | | | | | | | | | | | | | | | | Bug: 90510785 Test: VTS VtsHalGraphicsComposerV2_1Target SetColorMode(default) pass Change-Id: Ia295b3ef2f0f433a7e1b5179eb230b8f7c649400
* | | graphics: replace hidl_enum_iterator by hidl_enum_rangeChia-I Wu2018-05-311-1/+1
| | | | | | | | | | | | | | | Change-Id: I012aa2bcbb81105ea1a1ec05a577f3bb8136b0da Merged-In: I2180f18e8742850f728491887475f16b1cad4791
* | | Merge "graphics: COLORIMETRIC is optional for HDR modes" into pi-devChia-I Wu2018-05-303-5/+26
|\| | | | | | | | | | | | | | | | | am: 739c3177ea Change-Id: Ida893aaf12b8750e5a96060c6edece486b4f9ad9
| * | graphics: COLORIMETRIC is optional for HDR modesChia-I Wu2018-05-303-5/+26
| |/ | | | | | | | | | | | | Bug: 80030364 Test: VTS Change-Id: I2180f18e8742850f728491887475f16b1cad4791 Merged-In: I2180f18e8742850f728491887475f16b1cad4791
* | graphics: fix readback buffer testsChia-I Wu2018-05-233-8/+46
|\| | | | | | | | | | | am: 09782444e3 Change-Id: I15b2eb478edcef44169005c51611e1fcb4210453
| * graphics: fix readback buffer testsChia-I Wu2018-05-223-8/+46
| | | | | | | | | | | | | | | | | | | | Make readback buffer support optional. Fix incorrect use of setReadbackBuffer and getReadbackBufferFence. Bug: 80030364 Test: VTS Change-Id: I278a031c3c086ac38c460b7076a2952db57a91a4 Merged-In: I278a031c3c086ac38c460b7076a2952db57a91a4
* | Merge "Update comments for doc comments." into pi-devSteven Moreland2018-05-186-21/+21
|\| | | | | | | | | | | am: cce4c95c1c Change-Id: Id691cf973a214ee1d2f62297c13c8c030fc7a8bb
| * Update comments for doc comments.Steven Moreland2018-05-186-21/+21
| | | | | | | | | | | | | | | | | | Doc comments look like "/** ... */" and they can only be in certain places. Bug: 79865343 Test: m Change-Id: Ic15c08ff7dc6e4f9827c1dbe7f7236c11a572ec1
* | Merge "Composer 2.2: Fix readback docs" into pi-devDan Stoza2018-05-161-1/+12
|\| | | | | | | | | | | am: 066288295e Change-Id: I6721a52dbdb7141b84dde0516be6923b4016d7fa
| * Composer 2.2: Fix readback docsDan Stoza2018-05-161-1/+12
| | | | | | | | | | | | | | | | | | | | Fixes a couple of problems with the return codes in the readback documentation and adds a paragraph of clarification about when getReadbackBufferAttributes will be called. Bug: 67048889 Test: N/A, doc fix only Change-Id: Ic91b8db207c1b4b1f18777bd316279747506149b
* | Merge "graphics: add new gralloc1 functions to passthrough" into pi-devMarissa Wall2018-05-032-56/+94
|\| | | | | | | | | | | am: c357006160 Change-Id: I082a978faf33039e7a962810cc1aefb4c86c3343
| * Merge "graphics: add new gralloc1 functions to passthrough" into pi-devMarissa Wall2018-05-032-56/+94
| |\
| | * graphics: add new gralloc1 functions to passthroughMarissa Wall2018-05-032-56/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add calls to the new gralloc1 functions: import, validateBufferSize and getTransportSize. These new gralloc1 functions are used for security hardening. Bug: 66876469 Test: Manual Change-Id: I18e485c48e1a24352208753144d936e1117d4ccb
* | | Merge "HWC2On1Adapter: Fix fd leak in Layer::dump" am: 2e38b2c0f6android-build-prod (mdb)2018-04-271-2/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | am: 28172ae62a Change-Id: I384c44c57d05ca303fd04c9e920aae9e23c9ee45
| * | | HWC2On1Adapter: Fix fd leak in Layer::dumpDan Stoza2018-04-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the fence dump from Layer::dump, since: a) It was leaking (a dup() without a close()) b) It's not that useful anyway since it wasn't displaying the actual fence fd Test: Manual Bug: 73979009 Change-Id: I8f7446a05a1bab8c3ca781610ebeb98d17fa483b
| * | | graphics: add libhwc2on{1,fb}adapterChia-I Wu2018-03-309-0/+4647
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved from frameworks/native. Test: build Change-Id: I03bf1d073306aaa2ce155aee50fb9ac056906323 Merged-In: I03bf1d073306aaa2ce155aee50fb9ac056906323
* | | | graphics: allow re-saturation for any legacy dataspaceChia-I Wu2018-04-251-4/+3
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | am: c75e0f0bf9 Change-Id: Iced0f03f4a8e1ad3aa34b3c74a42b214865f5d19
| * | | graphics: allow re-saturation for any legacy dataspaceChia-I Wu2018-04-251-4/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While our intention is to only re-saturate legacy sRGB, the re-saturation is usually performed globally by the composer. To avoid GPU fallback when, for example, video plays, allow the re-saturation to be applied on any legacy dataspace. This also removes the clamping after applying the re-saturation matrix, allowing the output dataspace to be scRGB. Bug: 78303195 Bug: 78025845 Test: manual Change-Id: Ic221401894789fbaf6bad944b49006163238237c
* | | Merge "[Graphics] Update CommandWriter APIs to common::V1_1::* enum." into ↵Peiyong Lin2018-04-0213-36/+256
|\| | | | | | | | | | | | | | | | | | | | | | | pi-dev am: 584ee3b94a Change-Id: Ieb29aadc2e9034a9ff76495755d290fc0432e781
| * | [Graphics] Update CommandWriter APIs to common::V1_1::* enum.Peiyong Lin2018-04-0213-36/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we introduced Dataspace V1.1 and PixelFormat V1.1, thus APIs accepting Dataspace should also be updated to accept V1_1::Dataspace and V1_1::PixelFormat. BUG: 77156734 Test: adb shell /data/nativetest/VtsHalGraphicsComposerV2_2TargetTest/VtsHalGraphicsComposerV2_2TargetTest Change-Id: I00d00749f2895b727a18a28903256128a33e8b97
* | | Merge "graphics: add RenderIntent and better HDR support" into pi-devChia-I Wu2018-04-0215-58/+592
|\| | | | | | | | | | | | | | | | | am: aa6eca99e3 Change-Id: Ib3624e7188420ed9c538cd096627e93657001d90
| * | graphics: add RenderIntent and better HDR supportChia-I Wu2018-04-0215-58/+592
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds ColorMode::BT2020 ColorMode::BT2100_PQ ColorMode::BT2100_HLG Dataspace::BT2020_HLG Dataspace::BT2020_ITU_HLG RenderIntent::COLORIMETRIC RenderIntent::ENHANCE RenderIntent::TONE_MAP_COLORIMETRIC RenderIntent::TONE_MAP_ENHANCE and fixes per-frame metadata to be per-layer. It also clarifies how the composer should treat certain dataspaces and makes the corresponding composer changes. Bug: 73824924 Bug: 32148660 Test: manual Change-Id: I5d12f50190522103c2ac97ee8dc2d5f6a2dabffe
* | | resolve merge conflicts of 07ff5f43761273cadfbbe67aad5b86e1209e8775 to ↵Yuexi Ma2018-03-261-5/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | pi-dev-plus-aosp Test: I solemnly swear I tested this conflict resolution. Change-Id: Id636c3171bffffeaf7a30a7912c38796e5a4c780
| * | Merge "Update vts test module bp files to use VtsHalTargetTestDefaults"Yuexi Ma2018-03-261-5/+1
| |\| | | | | | | | | | | | | | | | am: fa7f2bc917 Change-Id: Ie70c11daaf21a2a86732f26488ce92fdd764c3b7
| | * Merge "Update vts test module bp files to use VtsHalTargetTestDefaults"Yuexi Ma2018-03-261-5/+1
| | |\
| | | * Update vts test module bp files to use VtsHalTargetTestDefaultsYuexi Ma2018-03-221-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | Test: make vts Change-Id: I3c0dab52dc894e1a1fc9b99be1351ed7bd380502 Merged-In: I3c0dab52dc894e1a1fc9b99be1351ed7bd380502
| * | | Merge "Fix crash on hotplug disconnect"Lloyd Pique2018-03-241-4/+14
| |\| | | | | | | | | | | | | | | | | | | | | | am: e4a97f23c2 Change-Id: Id4e07f31f399bfb6f236155435fbcfe6464c5b49
| | * | Fix crash on hotplug disconnectLloyd Pique2018-03-231-4/+14
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ComposerClient destroys its internal model of the display while handling the onHotPlug event from the Hwc. Subsequently SurfaceFlinger destroys its model of the display, and destroys all Hwc layers associated with the display. This fixes the code for destroying layers to not dereference an invalid iterator if the display does not exist, allowing destruction to continue. It also fixes a similar issue which could occur if a HWC layer is being created for a display at around the same time as the disconnect event. Test: hotplug disconnect no longer crashes Bug: 38464421 Change-Id: I0f2d28fe89fccf997b4bbb9fa6b5c0e6a6e49b93 Merged-In: I0f2d28fe89fccf997b4bbb9fa6b5c0e6a6e49b93 (cherry picked from commit 2765f9d406aae93adceaec67e8053f2ac1129312)
* | | Update Makefiles Missed In Previous CommitsNathan Harold2018-03-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling update-makefiles.sh there are some unrelated changes that were missed in previous commits. Bug: 8675309 Test: compilation Change-Id: I5bf67fbcc809de36bde1869ada7b835566a5198b
* | | graphics: restart HWC when SurfaceFlinger stopsDaniel Solomon2018-03-121-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently display stays on when SurfaceFlinger is stopped, since HWC runs as a separate service. There's no reason for display to remain on in this state, and can be confusing to developers. Restarting HWC when SurfaceFlinger stops causes display to turn off, matching expected behavior. HWC is then ready to service SurfaceFlinger when SurfaceFlinger starts back up. Bug: 74199279 Change-Id: Ic772c29b362b3e8b2d6bc674a0bd237440880492
* | | Add hwcomposer to the system-background cpuset.Carmen Jackson2018-03-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Little cores should be fast enough to handle hwcomposer work, so avoiding using big cores for this is a potential opportunity to save battery. Bug: 73543056 Test: Verified using dumpsys gfxinfo that TouchLatency doesn't drop frames. Test: Took 10s systraces of TouchLatency and a Youtube VR video and saw no frames dropped in SurfaceFlinger. Change-Id: If96e13a2bacc9541f4d69a5736254817f20cacdd