Provide a shim for libui
Co-authored-by: Erfan Abdi <erfangplus@gmail.com> Co-authored-by: Quallenauge <Hamsi2k@freenet.de> Change-Id: I27d511340f0f2497bbeb2b046c18b66606610040
This commit is contained in:
parent
20c7906710
commit
12973d5ad4
2 changed files with 32 additions and 0 deletions
|
@ -270,3 +270,10 @@ cc_library {
|
|||
},
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "libui_shim",
|
||||
shared_libs: ["libui"],
|
||||
srcs: ["libui/GraphicBuffer.cpp"],
|
||||
compile_multilib: "64",
|
||||
}
|
||||
|
|
25
libui/GraphicBuffer.cpp
Normal file
25
libui/GraphicBuffer.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
Copyright 2022, The LineageOS Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
extern "C" void _ZN7android13GraphicBuffer4lockEjPPvPiS3_(void* thisptr, uint32_t inUsage,
|
||||
void** vaddr, int32_t* outBytesPerPixel, int32_t* outBytesPerStride);
|
||||
|
||||
extern "C" void _ZN7android13GraphicBuffer4lockEjPPv(void* thisptr, uint32_t inUsage,
|
||||
void** vaddr) {
|
||||
_ZN7android13GraphicBuffer4lockEjPPvPiS3_(thisptr, inUsage, vaddr, nullptr, nullptr);
|
||||
}
|
Loading…
Reference in a new issue