From 4e51d0bef9a7b0550ae774ee683b971846e8e067 Mon Sep 17 00:00:00 2001 From: JackLee <809262979@qq.com> Date: Fri, 10 Apr 2026 23:16:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=BC=A0=E6=A0=87=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=BB=B6=E8=BF=9F=E9=97=AE=E9=A2=98.=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E6=8A=8A=E6=97=8B=E8=BD=AC=E7=9B=B8=E6=9C=BA=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E7=BA=B3=E5=85=A5=E4=BA=8B=E4=BB=B6=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/cpp/NativeEGLOCCT/OCCTMgr/RenderThread.cpp | 8 ++------ entry/src/main/cpp/NativeEGLOCCT/OCCTMgr/RenderThread.h | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/entry/src/main/cpp/NativeEGLOCCT/OCCTMgr/RenderThread.cpp b/entry/src/main/cpp/NativeEGLOCCT/OCCTMgr/RenderThread.cpp index ca80c280..23b0573f 100644 --- a/entry/src/main/cpp/NativeEGLOCCT/OCCTMgr/RenderThread.cpp +++ b/entry/src/main/cpp/NativeEGLOCCT/OCCTMgr/RenderThread.cpp @@ -92,7 +92,7 @@ void RenderThread::renderLoop() { initFontMgr(); eglSubCore=new EGLSubCore(); eglSubCore->InitEGLSubCore(thrInfo.eglCore->GetEGLDisplay(), thrInfo.eglCore->GetEGLConfig(), thrInfo.win); - Render* render=new Render(thrInfo.width,thrInfo.height); + render=new Render(thrInfo.width,thrInfo.height); if (render->init(thrInfo.eglCore->GetEGLDisplay(),eglSubCore->eglCtx,thrInfo.eglCore->GetEGLConfig())) { OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "NativeRenderInit ","Render Init Done"); }else{ @@ -178,11 +178,7 @@ void RenderThread::loadModel(const std::string& filePath) { void RenderThread::setRotation(float xAngle, float yAngle) { std::lock_guard lock(commandMutex_); - RenderCommand cmd(CMD_SET_ROTATION); - cmd.param2 = xAngle; - cmd.param3 = yAngle; - commandQueue_.push(cmd); - commandCondition_.notify_one(); + render->setRotation(xAngle,yAngle); } void RenderThread::setTranslation(float x, float y) { diff --git a/entry/src/main/cpp/NativeEGLOCCT/OCCTMgr/RenderThread.h b/entry/src/main/cpp/NativeEGLOCCT/OCCTMgr/RenderThread.h index d764cee8..b7924b68 100644 --- a/entry/src/main/cpp/NativeEGLOCCT/OCCTMgr/RenderThread.h +++ b/entry/src/main/cpp/NativeEGLOCCT/OCCTMgr/RenderThread.h @@ -78,7 +78,6 @@ private: }; std::queue commandQueue_; - std::mutex callbackMutex_; Callback renderCompleteCallback_; Handle(Font_FontMgr) ftMgr ;