From c341544c80a57ecabea45fb8fc6f48f6fd3418ad Mon Sep 17 00:00:00 2001 From: xi yu Date: Mon, 9 May 2022 08:58:02 +0000 Subject: [PATCH] [Bugfix][BootAnimation] Fix the issue of the transparent background image shows transparent background unexpectedly in BootAnimation on some MTK platforms. Test: manual Change-Id: I2074a48c6d3fc11f393bfa4fbcbcd8d0df5c780f --- cmds/bootanimation/BootAnimation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 52fd7be0d7684..65826234d30c8 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -509,7 +509,8 @@ status_t BootAnimation::readyToRun() { resolution = limitSurfaceSize(resolution.width, resolution.height); // create the native surface sp control = session()->createSurface(String8("BootAnimation"), - resolution.getWidth(), resolution.getHeight(), PIXEL_FORMAT_RGB_565); + resolution.getWidth(), resolution.getHeight(), PIXEL_FORMAT_RGB_565, + ISurfaceComposerClient::eOpaque); SurfaceComposerClient::Transaction t;