Loading core/jni/Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -234,6 +234,7 @@ LOCAL_STATIC_LIBRARIES := \ libseccomp_policy \ libselinux \ libcrypto \ libgrallocusage \ LOCAL_SHARED_LIBRARIES := \ libmemtrack \ Loading core/jni/android_hardware_HardwareBuffer.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ #include <private/gui/ComposerService.h> #include <hardware/gralloc1.h> #include <grallocusage/GrallocUsageConversion.h> #include "core_jni_helpers.h" Loading Loading @@ -85,7 +86,7 @@ static jlong android_hardware_HardwareBuffer_create(JNIEnv* env, jobject clazz, &producerUsage, &consumerUsage, usage, 0); sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers, producerUsage, consumerUsage, android_convertGralloc1To0Usage(producerUsage, consumerUsage), std::string("HardwareBuffer pid [") + std::to_string(getpid()) +"]"); status_t error = buffer->initCheck(); if (error < 0) { Loading Loading
core/jni/Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -234,6 +234,7 @@ LOCAL_STATIC_LIBRARIES := \ libseccomp_policy \ libselinux \ libcrypto \ libgrallocusage \ LOCAL_SHARED_LIBRARIES := \ libmemtrack \ Loading
core/jni/android_hardware_HardwareBuffer.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ #include <private/gui/ComposerService.h> #include <hardware/gralloc1.h> #include <grallocusage/GrallocUsageConversion.h> #include "core_jni_helpers.h" Loading Loading @@ -85,7 +86,7 @@ static jlong android_hardware_HardwareBuffer_create(JNIEnv* env, jobject clazz, &producerUsage, &consumerUsage, usage, 0); sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers, producerUsage, consumerUsage, android_convertGralloc1To0Usage(producerUsage, consumerUsage), std::string("HardwareBuffer pid [") + std::to_string(getpid()) +"]"); status_t error = buffer->initCheck(); if (error < 0) { Loading