| 133 | } |
| 134 | |
| 135 | jobject HardwareBufferToJavaObject(JNIEnv* env, HardwareBufferRef hardwareBuffer) { |
| 136 | static const auto toHardwareBuffer = AHardwareBufferFunctions::Get()->toHardwareBuffer; |
| 137 | if (toHardwareBuffer == nullptr || hardwareBuffer == nullptr) { |
| 138 | return nullptr; |
| 139 | } |
| 140 | return toHardwareBuffer(env, hardwareBuffer); |
| 141 | } |
| 142 | } // namespace tgfx |
nothing calls this directly
no outgoing calls
no test coverage detected