From c341544c80a57ecabea45fb8fc6f48f6fd3418ad Mon Sep 17 00:00:00 2001 From: xi yu Date: Mon, 9 May 2022 08:58:02 +0000 Subject: [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(-) (limited to 'cmds/bootanimation/BootAnimation.cpp') diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 52fd7be0d768..65826234d30c 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; -- cgit v1.2.3-59-g8ed1b