summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Lucas Dupin <dupin@google.com> 2022-05-14 01:13:48 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-05-14 01:13:48 +0000
commit09a38f4d9fc7f7b5a60a349f8504330c2643fd7b (patch)
tree1b0e7f7fc77c4817d4e05c2ad98c9436902f1dc6 /cmds/bootanimation/BootAnimation.cpp
parentc4ca15f088e40b3b353db5b38ef5b9c5c6aa8b79 (diff)
parent11aec9327a0952badbfd1ba5538428129a3cb29e (diff)
Merge "[Bugfix][BootAnimation] Fix the issue of the transparent background image shows transparent background unexpectedly in BootAnimation on some MTK platforms." am: 6562eb87f3 am: e3f08c403e am: 8ab593e3a8 am: 11aec9327a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2092083 Change-Id: I50f19a57f51136fdc5e215437446eae6da668099 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 50c8e933d25f..33739f39aaa4 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -510,7 +510,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;