aboutsummaryrefslogtreecommitdiff
path: root/mtk/libshims
diff options
context:
space:
mode:
authorMister Oyster <oysterized@gmail.com>2017-04-28 18:19:35 +0200
committerMister Oyster <oysterized@gmail.com>2017-04-28 18:20:27 +0200
commit3468eccad748fa5a0c07ed4fb8b16b0b26082f79 (patch)
tree94ce31faff94c520b9e7d753cfe564c70ca5dc6e /mtk/libshims
parent8b6b810a77cf2b960c1590e359b0651817920570 (diff)
libshim: fix GraphicBufferC1ejjij symbols during video recording, thanks @divis1969 for the solution
Diffstat (limited to 'mtk/libshims')
-rw-r--r--mtk/libshims/Android.mk4
-rw-r--r--mtk/libshims/ui/mtk_gbc1.cpp10
2 files changed, 6 insertions, 8 deletions
diff --git a/mtk/libshims/Android.mk b/mtk/libshims/Android.mk
index d2a3e27..be412e2 100644
--- a/mtk/libshims/Android.mk
+++ b/mtk/libshims/Android.mk
@@ -27,8 +27,8 @@ include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
- ui/mtk_ui.cpp
- #ui/mtk_gbc1.cpp \
+ ui/mtk_ui.cpp \
+ ui/mtk_gbc1.cpp \
LOCAL_SHARED_LIBRARIES := libbinder libui
LOCAL_MODULE := libshim_ui
diff --git a/mtk/libshims/ui/mtk_gbc1.cpp b/mtk/libshims/ui/mtk_gbc1.cpp
index 004c393..0bebe2e 100644
--- a/mtk/libshims/ui/mtk_gbc1.cpp
+++ b/mtk/libshims/ui/mtk_gbc1.cpp
@@ -1,15 +1,13 @@
-#include <ui/GraphicBufferMapper.h>
-#include <ui/PixelFormat.h>
-#include <ui/Rect.h>
+#include <string>
extern "C" {
void _ZN7android13GraphicBufferC1EjjijNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
- uint32_t inWidth, uint32_t inHeight, android::PixelFormat inFormat,
+ void *(pthis), uint32_t inWidth, uint32_t inHeight, int inFormat,
uint32_t inUsage, std::string requestorName);
- void _ZN7android13GraphicBufferC1Ejjij(uint32_t inWidth, uint32_t inHeight, int32_t inFormat, uint32_t inUsage) {
+ void _ZN7android13GraphicBufferC1Ejjij(void *(pthis), uint32_t inWidth, uint32_t inHeight, int inFormat, uint32_t inUsage) {
_ZN7android13GraphicBufferC1EjjijNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE(
- inWidth, inHeight, inFormat, inUsage, "<Unknown>");
+ pthis, inWidth, inHeight, inFormat, inUsage, "<Unknown>");
}
}