diff options
author | derek.li <derek.li@realtek.com> | 2024-05-10 17:59:51 +0800 |
---|---|---|
committer | derek.li <derek.li@realtek.com> | 2024-05-13 09:21:45 +0800 |
commit | 9231011c3e61043ce365ac0e9417aa23060dd475 (patch) | |
tree | 69acd700dd2c36c419cf7142db110b2a8a38d30c | |
parent | 43dc73188e63b383f3c331afea3909c39303bd00 (diff) | |
download | base-9231011c3e61043ce365ac0e9417aa23060dd475.tar.gz |
Fix Boot animation display issue on android 14 devices
Use the size of limitSurfaceSize to set the window
Bug: 339763174
Test: 1. set the property:
[ro.surface_flinger.max_graphics_height]: [1080]
[ro.surface_flinger.max_graphics_width]: [1920]
2. Repeatedly Turn on/off while connecting to 4K TV and check the boot animation
Change-Id: I378aab715d75b8ddb47068cb0e81503d83339021
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 77b74e9898b8..5adcd930e341 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -707,11 +707,11 @@ void BootAnimation::resizeSurface(int newWidth, int newHeight) { eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); eglDestroySurface(mDisplay, mSurface); - mFlingerSurfaceControl->updateDefaultBufferSize(newWidth, newHeight); const auto limitedSize = limitSurfaceSize(newWidth, newHeight); mWidth = limitedSize.width; mHeight = limitedSize.height; + mFlingerSurfaceControl->updateDefaultBufferSize(mWidth, mHeight); EGLConfig config = getEglConfig(mDisplay); EGLSurface surface = eglCreateWindowSurface(mDisplay, config, mFlingerSurface.get(), nullptr); if (eglMakeCurrent(mDisplay, surface, surface, mContext) == EGL_FALSE) { |