perf: Avoid error message copying
This commit is contained in:
parent
4bacee796a
commit
da84a0fd42
@ -82,7 +82,7 @@ CameraView* FrameProcessorRuntimeManager::findCameraViewById(int viewId) {
|
|||||||
return result->cthis();
|
return result->cthis();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FrameProcessorRuntimeManager::logErrorToJS(std::string message) {
|
void FrameProcessorRuntimeManager::logErrorToJS(const std::string& message) {
|
||||||
if (!this->jsCallInvoker_) {
|
if (!this->jsCallInvoker_) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ class FrameProcessorRuntimeManager : public jni::HybridClass<FrameProcessorRunti
|
|||||||
void initializeRuntime();
|
void initializeRuntime();
|
||||||
void installJSIBindings();
|
void installJSIBindings();
|
||||||
void registerPlugin(alias_ref<FrameProcessorPlugin::javaobject> plugin);
|
void registerPlugin(alias_ref<FrameProcessorPlugin::javaobject> plugin);
|
||||||
void logErrorToJS(std::string message);
|
void logErrorToJS(const std::string& message);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace vision
|
} // namespace vision
|
||||||
|
Loading…
Reference in New Issue
Block a user