MCPcopy Create free account
hub / github.com/Tencent/tgfx / HardwareBufferToJavaObject

Function HardwareBufferToJavaObject

src/platform/android/HardwareBuffer.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135jobject 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected