diff --git a/frameworks/opengl_wrapper/src/EGL/egl_wrapper_display.cpp b/frameworks/opengl_wrapper/src/EGL/egl_wrapper_display.cpp index 7ab131ae80..bc0bd4bf4c 100644 --- a/frameworks/opengl_wrapper/src/EGL/egl_wrapper_display.cpp +++ b/frameworks/opengl_wrapper/src/EGL/egl_wrapper_display.cpp @@ -639,6 +639,7 @@ EGLBoolean EglWrapperDisplay::SwapBuffers(EGLSurface surf) { WLOGD(""); std::lock_guard lock(refLockMutex_); + #if USE_APS_FUNC OHOS::Rosen::ApsGameFpsController::GetInstance().PowerCtrllofEglswapbuffer(); #endif // USE_APS_FUNC