update frameworks/opengl_wrapper/src/EGL/egl_wrapper_display.cpp.

Signed-off-by: chengwenfeng <chengwenfeng6@huawei.com>
This commit is contained in:
chengwenfeng 2024-04-02 10:58:31 +00:00 committed by Gitee
parent 68e28ed871
commit 9d3d9e37a1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -639,6 +639,7 @@ EGLBoolean EglWrapperDisplay::SwapBuffers(EGLSurface surf)
{ {
WLOGD(""); WLOGD("");
std::lock_guard<std::mutex> lock(refLockMutex_); std::lock_guard<std::mutex> lock(refLockMutex_);
#if USE_APS_FUNC #if USE_APS_FUNC
OHOS::Rosen::ApsGameFpsController::GetInstance().PowerCtrllofEglswapbuffer(); OHOS::Rosen::ApsGameFpsController::GetInstance().PowerCtrllofEglswapbuffer();
#endif // USE_APS_FUNC #endif // USE_APS_FUNC