diff options
author | 2022-05-09 08:58:02 +0000 | |
---|---|---|
committer | 2022-05-13 09:03:00 +0000 | |
commit | c341544c80a57ecabea45fb8fc6f48f6fd3418ad (patch) | |
tree | 3520e2e360fe1c2bef8dce97d8f16e7f5996330b /cmds/bootanimation/BootAnimation.cpp | |
parent | 0d0729a62fd8a9c38b708b51f9813e199c9082ea (diff) |
[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
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<SurfaceControl> 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; |