Loading libs/ui/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,7 @@ cc_library_shared { "libhardware", "libhidlbase", "libhidltransport", "libhwbinder", "libsync", "libutils", "liblog", Loading libs/ui/Gralloc2.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #define LOG_TAG "Gralloc2" #include <hwbinder/IPCThreadState.h> #include <ui/Gralloc2.h> #include <log/log.h> Loading Loading @@ -241,6 +242,9 @@ Error Allocator::allocate(BufferDescriptor descriptor, uint32_t count, *outStride = tmpStride; }); // make sure the kernel driver sees BC_FREE_BUFFER and closes the fds now hardware::IPCThreadState::self()->flushCommands(); return (ret.isOk()) ? error : kTransactionError; } Loading Loading
libs/ui/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,7 @@ cc_library_shared { "libhardware", "libhidlbase", "libhidltransport", "libhwbinder", "libsync", "libutils", "liblog", Loading
libs/ui/Gralloc2.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #define LOG_TAG "Gralloc2" #include <hwbinder/IPCThreadState.h> #include <ui/Gralloc2.h> #include <log/log.h> Loading Loading @@ -241,6 +242,9 @@ Error Allocator::allocate(BufferDescriptor descriptor, uint32_t count, *outStride = tmpStride; }); // make sure the kernel driver sees BC_FREE_BUFFER and closes the fds now hardware::IPCThreadState::self()->flushCommands(); return (ret.isOk()) ? error : kTransactionError; } Loading