sdm660-common: libshims: Respect non-static member function calls.
As stated in https://www.learncpp.com/cpp-tutorial/8-8-the-hidden-this-pointer/ member functions contains a hidden parameter (a pointer of the current reference of teh object, aka "this"). This way the code knows in which context the member function is called. We have to resprect that behavior into our shims which otherwise crashes or lead to memory corruption. Change-Id: I68197ebafde8773fd73d7dafb9b2f1bae92ee170 Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
parent
73a489db3f
commit
3ba089b453
1 changed files with 5 additions and 3 deletions
|
@ -1,10 +1,12 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
extern "C" void _ZN7android13GraphicBuffer4lockEjPPvPiS3_(uint32_t inUsage, void** vaddr, int32_t* outBytesPerPixel, int32_t* outBytesPerStride);
|
extern "C" void _ZN7android13GraphicBuffer4lockEjPPvPiS3_(void* thisptr, uint32_t inUsage,
|
||||||
|
void** vaddr, int32_t* outBytesPerPixel, int32_t* outBytesPerStride);
|
||||||
|
|
||||||
extern "C" void _ZN7android13GraphicBuffer4lockEjPPv(uint32_t inUsage, void** vaddr) {
|
extern "C" void _ZN7android13GraphicBuffer4lockEjPPv(void* thisptr, uint32_t inUsage,
|
||||||
_ZN7android13GraphicBuffer4lockEjPPvPiS3_(inUsage, vaddr, nullptr, nullptr);
|
void** vaddr) {
|
||||||
|
_ZN7android13GraphicBuffer4lockEjPPvPiS3_(thisptr, inUsage, vaddr, nullptr, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void _ZN7android6Parcel17writeUint64VectorERKNSt3__16vectorIyNS1_9allocatorIyEEEE() { };
|
extern "C" void _ZN7android6Parcel17writeUint64VectorERKNSt3__16vectorIyNS1_9allocatorIyEEEE() { };
|
||||||
|
|
Loading…
Reference in a new issue