summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Lloyd Pique <lpique@google.com> 2020-02-11 12:06:56 -0800
committer Lloyd Pique <lpique@google.com> 2020-02-13 13:48:35 -0800
commit4603f3c2151bf6535048b6a42318c8393826b68f (patch)
tree994370396c5e07a8efae8962329c6516e6ab2506 /libs/gui/BufferQueueThreadState.cpp
parent314dc6c2e6403b937fe2094e08eb3487a5f36182 (diff)
[sf] Add support for generic layer metadata to HWComposer and HWC2
HWComposer construction is slightly modified to make it easier to test. Data is retrieved about the device on the call SurfaceFlinger makes right after creaton (was registerCallbacks, now called setConfiguration). This now includes obtaining the supported layer metadata information from the HAL implementation. Since getting capabilities is now no longer done by just construction, the existing tests were adjusted to not expect the call, especially as none of them were testing any variance in capabilities. A HWC2::Layer::setLayerGenericMetadata function is also added to set the metadata. Tests are explicitly added for both retrieving the supported metadata and for setting layer generic metadata. Bug: 139747351 Test: atest libsurfaceflinger_unittest Change-Id: I3e95be932d94d4e9f200b870acea965744c68d2c
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions