perf: Remove a few unnecessary log statements
This commit is contained in:
parent
0f0f1fbb07
commit
26d19d5152
@ -37,7 +37,6 @@ void CameraView::frameProcessorCallback(const alias_ref<JImageProxy::javaobject>
|
||||
|
||||
auto frameStrong = make_local(frame);
|
||||
try {
|
||||
__android_log_write(ANDROID_LOG_INFO, TAG, "Calling Frame Processor...");
|
||||
frameProcessor_(frameStrong);
|
||||
} catch (const std::exception& exception) {
|
||||
// TODO: jsi::JSErrors cannot be caught on Hermes. They crash the entire app.
|
||||
|
@ -133,8 +133,6 @@ void FrameProcessorRuntimeManager::installJSIBindings() {
|
||||
|
||||
// assign lambda to frame processor
|
||||
cameraView->setFrameProcessor([&rt, function](jni::local_ref<JImageProxy::javaobject> frame) {
|
||||
__android_log_write(ANDROID_LOG_INFO, TAG, "Frame Processor called!");
|
||||
|
||||
// create HostObject which holds the Frame (JImageProxy)
|
||||
auto hostObject = std::make_shared<JImageProxyHostObject>(frame);
|
||||
function->call(rt, jsi::Object::createFromHostObject(rt, hostObject));
|
||||
|
@ -23,7 +23,6 @@ std::vector<jsi::PropNameID> JImageProxyHostObject::getPropertyNames(jsi::Runtim
|
||||
|
||||
jsi::Value JImageProxyHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID& propNameId) {
|
||||
auto name = propNameId.utf8(runtime);
|
||||
__android_log_write(ANDROID_LOG_INFO, TAG, ("Getting prop \"" + name + "\"...").c_str());
|
||||
|
||||
if (name == "toString") {
|
||||
auto toString = [this] (jsi::Runtime& runtime, const jsi::Value& thisValue, const jsi::Value* arguments, size_t count) -> jsi::Value {
|
||||
|
@ -407,7 +407,6 @@ class CameraView(context: Context) : FrameLayout(context), LifecycleOwner {
|
||||
val now = System.currentTimeMillis()
|
||||
if (now - lastCall > intervalMs) {
|
||||
lastCall = now
|
||||
Log.d(TAG, "Calling Frame Processor...")
|
||||
frameProcessorCallback(image)
|
||||
}
|
||||
image.close()
|
||||
|
Loading…
Reference in New Issue
Block a user