添加调试日志
This commit is contained in:
@@ -6,6 +6,13 @@
|
||||
#include <vector>
|
||||
#include <mutex>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include "../app/src/main/cpp/DebugLog.h"
|
||||
#define FACE_DBG_LOG(...) DebugLog::log(__VA_ARGS__)
|
||||
#else
|
||||
#define FACE_DBG_LOG(...) ((void)0)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
FaceApp* FaceApp::faceIns = nullptr;
|
||||
@@ -772,6 +779,11 @@ void FaceApp::createVmaAllocator()
|
||||
|
||||
void FaceApp::initVulkan()
|
||||
{
|
||||
static int s_initVulkanCallCount = 0;
|
||||
++s_initVulkanCallCount;
|
||||
FACE_DBG_LOG("FaceApp::initVulkan enter, call#%d _applicationInited=%d _faceAppInited=%d _secondfaceAppInited=%d",
|
||||
s_initVulkanCallCount, (int)_applicationInited, (int)_faceAppInited, (int)_secondfaceAppInited);
|
||||
|
||||
Application::initVulkan();
|
||||
|
||||
if (!_faceAppInited)
|
||||
@@ -839,6 +851,9 @@ void FaceApp::initVulkan()
|
||||
_playMotion = true;
|
||||
_secondfaceAppInited = true;
|
||||
}
|
||||
|
||||
FACE_DBG_LOG("FaceApp::initVulkan exit, call#%d _applicationInited=%d _faceAppInited=%d _secondfaceAppInited=%d",
|
||||
s_initVulkanCallCount, (int)_applicationInited, (int)_faceAppInited, (int)_secondfaceAppInited);
|
||||
}
|
||||
|
||||
void FaceApp::clearnSecondFaceApp()
|
||||
|
||||
Reference in New Issue
Block a user