libui: Add android::GraphicBufferMapper::lock shims

Change-Id: I9f4da2bb1260d53ec4bb6604a89e78c495ad539a
This commit is contained in:
R0rt1z2 2023-07-17 12:22:12 +02:00 committed by Sebastiano Barezzi
parent 6be2ac19ee
commit efa7303881
No known key found for this signature in database
GPG key ID: 763BD3AE91A7A13F
2 changed files with 26 additions and 0 deletions

View file

@ -304,6 +304,7 @@ cc_library_shared {
srcs: [
"libui/Fence.cpp",
"libui/GraphicBuffer.cpp",
"libui/GraphicBufferMapper.cpp",
],
vendor_available: true,
}

View file

@ -0,0 +1,25 @@
/*
* Copyright (C) 2023 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdint.h>
#include <ui/GraphicBufferMapper.h>
#include <ui/Rect.h>
#include <utils/Errors.h>
using android::Rect;
using android::status_t;
extern "C" {
status_t _ZN7android19GraphicBufferMapper4lockEPK13native_handlejRKNS_4RectEPPvPiS9_(
void* thisptr, buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr,
int32_t* outBytesPerPixel, int32_t* outBytesPerStride);
status_t _ZN7android19GraphicBufferMapper4lockEPK13native_handlejRKNS_4RectEPPv(
void* thisptr, buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr) {
return _ZN7android19GraphicBufferMapper4lockEPK13native_handlejRKNS_4RectEPPvPiS9_(
thisptr, handle, usage, bounds, vaddr, nullptr, nullptr);
}
}