Commit graph

9 commits

Author SHA1 Message Date
Sebastiano Barezzi
ca34347089
compat: Keep only one copy of clang-format style
* When --style=file is specified, clang-format will look for a
  .clang-format on file's parent dirs automatically

Change-Id: If94fe4915cd434b3f5901b8830cbdb90976ae4b7
2023-07-17 20:51:56 +02:00
R0rt1z2
efa7303881
libui: Add android::GraphicBufferMapper::lock shims
Change-Id: I9f4da2bb1260d53ec4bb6604a89e78c495ad539a
2023-07-17 20:51:56 +02:00
Sebastiano Barezzi
6be2ac19ee
libui: Move every symbol under extern C block
Change-Id: I19370532134f3ff84759177a1d6adcbd9da10a8d
2023-07-17 20:51:56 +02:00
Sebastiano Barezzi
2318cd6f47
libui: Fix android::GraphicBuffer::lock return value
Change-Id: I2c439c74d594959f1612c672ac685388a5386d4d
2023-07-17 20:51:56 +02:00
Ivan Vecera
d67ae54f8e compat: Fix ABI issues
Several constructor shims are implemented incorrectly because
they completely ignore the fact that constructors have 'this-call'
calling convention and should pass 'this ptr' as the first argument [1]
as well as its return value, at least according ARM ABI [2].

Additionally android::SurfaceComposerClient::Transaction::apply(bool)
shim has void return value instead of status_t so the caller retrieves
random value.

[1] https://review.lineageos.org/c/LineageOS/android_device_xiaomi_sdm710-common/+/360011/comments/eb6600df_3e2fb434
[2] 617079d8a0/cppabi32/cppabi32.rst (L576)

Change-Id: I7b14b5d3ca6008c1e4b3f5fcbaece5021b3cbb82
Signed-off-by: Ivan Vecera <ivan@cera.cz>
2023-06-26 15:20:07 +02:00
Ethan Chen
f0f1e67f41 compat: Add shim for Fence destructor
* This was replaced with a default destructor which has no visible
  linkage. No-op the destructor call and hope the actual destructor is
  called from underneath.

Change-Id: Id039e916c24959e9f60391bc10886df878f4d265
2022-10-27 17:21:16 +01:00
LuK1337
c3f51682eb libgui/libui: Switch to SPDX license identifiers
Change-Id: Iaf4cbd3ea8cdbf74bff42466a51f81af88b82c81
2022-09-21 18:20:58 +02:00
LuK1337
8c9cff232b libgui/libui: Add and run clang-format
Change-Id: I34ad46b99904e48be1a273486a42e0dc7edea48f
2022-09-21 18:19:26 +02:00
Nolen Johnson
12973d5ad4 Provide a shim for libui
Co-authored-by: Erfan Abdi <erfangplus@gmail.com>
Co-authored-by: Quallenauge <Hamsi2k@freenet.de>
Change-Id: I27d511340f0f2497bbeb2b046c18b66606610040
2022-09-21 16:42:55 +01:00