History log of /frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/MockComposer.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2c327ac2840b34848543cc961d16d3dbad102f16 20-Apr-2018 Peiyong Lin <lpy@google.com> [SurfaceFlinger] Plumb getPerFrameMetadataKeys and setLayerPerFrameMetadata.

This patch compresses supported metdata types into a bitmask and stores it in
DisplayDevice and refactors the code in Hwc2::Layer regarding HdrMetadata. When
DisplayDevice is created, the ability of accepting metadata will be queried
from hardware composer and stored in DisplayDevice. Hwc2::Layer will construct
HdrMetadata to PerFrameMetadata when setPerFrameHdrMetadata is called if the
incoming meta data is changed.

Previously, setLayerPerFrameMetadata was named as setLayerHdrMetadata, but
since we move the responsibility of constructing PerFrameMetadata from
ComposerHal to Hwc2::Layer, we change the name to setLayerPerFrameMetadata,
which is more generic and matches the HIDL interface.

BUG: 77831156
Test: Build and flash
Change-Id: I447956f4dcf42c90ceb3d29091cd5034ad91061a
Merged-In: I447956f4dcf42c90ceb3d29091cd5034ad91061a
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/MockComposer.h
cbe00014e44eeeb3f187bbcc5e0d60702201a3a5 03-Feb-2018 Lloyd Pique <lpique@google.com> SF: Shuffle test mocks into subdirs

This shuffles the various GMock files into a subdir mock/ that also
mirrors the subdirectory hierarchy of the implementation being mocked.

Test: libsurfaceflinger_unittest passes on Pixel XL
Bug: 74827900
Change-Id: I4c90228993a44c27708c703763e0315322fef0ce
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/MockComposer.h