external/gbm_gralloc
Revisión | db36c0033e29d0bb98553f790c397f89dcd1d1e2 (tree) |
---|---|
Tiempo | 2019-08-19 20:01:35 |
Autor | Rob Herring <robh@kern...> |
Commiter | GitHub |
Merge pull request #12 from rsglobal/fixes-pr
Fixes
@@ -30,7 +30,8 @@ LOCAL_SHARED_LIBRARIES := \ | ||
30 | 30 | libdrm \ |
31 | 31 | libgbm \ |
32 | 32 | liblog \ |
33 | - libcutils | |
33 | + libcutils \ | |
34 | + libhardware \ | |
34 | 35 | |
35 | 36 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
36 | 37 | $(LOCAL_PATH) |
@@ -24,7 +24,7 @@ | ||
24 | 24 | |
25 | 25 | #define LOG_TAG "GRALLOC-GBM" |
26 | 26 | |
27 | -#include <cutils/log.h> | |
27 | +#include <log/log.h> | |
28 | 28 | #include <stdlib.h> |
29 | 29 | #include <stdarg.h> |
30 | 30 | #include <string.h> |
@@ -156,8 +156,7 @@ static int gbm_mod_close_gpu0(struct hw_device_t *dev) | ||
156 | 156 | struct alloc_device_t *alloc = (struct alloc_device_t *) dev; |
157 | 157 | |
158 | 158 | gbm_dev_destroy(dmod->gbm); |
159 | - native_handle_delete((native_handle*)handle); | |
160 | - //delete alloc; | |
159 | + delete alloc; | |
161 | 160 | |
162 | 161 | return 0; |
163 | 162 | } |
@@ -24,11 +24,12 @@ | ||
24 | 24 | |
25 | 25 | #define LOG_TAG "GRALLOC-GBM" |
26 | 26 | |
27 | -#include <cutils/log.h> | |
27 | +#include <log/log.h> | |
28 | 28 | #include <cutils/atomic.h> |
29 | 29 | #include <cutils/properties.h> |
30 | 30 | #include <stdlib.h> |
31 | 31 | #include <string.h> |
32 | +#include <unistd.h> | |
32 | 33 | #include <errno.h> |
33 | 34 | #include <sys/types.h> |
34 | 35 | #include <sys/stat.h> |