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
This commit is contained in:
Ethan Chen 2018-09-06 02:00:51 -07:00 committed by Bruno Martins
parent e2f889da0b
commit f0f1e67f41
2 changed files with 14 additions and 1 deletions

View file

@ -281,6 +281,9 @@ cc_library {
cc_library_shared {
name: "libui_shim",
shared_libs: ["libui"],
srcs: ["libui/GraphicBuffer.cpp"],
srcs: [
"libui/Fence.cpp",
"libui/GraphicBuffer.cpp",
],
compile_multilib: "64",
}

10
libui/Fence.cpp Normal file
View file

@ -0,0 +1,10 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
// android::Fence::~Fence()
extern "C" void _ZN7android5FenceD1Ev() {
// no-op, the explicit destructor was replaced with = default;
}