commit | 4d2588545fe9eee49a1ad5edeb4ff1c33e8081c0 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Wed Nov 24 14:40:53 2021 -0500 |
committer | Leon Scroggins III <scroggo@google.com> | Mon Dec 06 15:25:51 2021 -0500 |
tree | 82c03e11a3828d74a8a299443277d02de34fe784 | |
parent | e334dd4112538701aeb4cce6b21ab167f91df1ce [diff] [blame] |
Add AHB and Pixel- Formats for R8 Add AHARDWAREBUFFER_FORMAT_R8_UNORM and PIXEL_FORMAT_R_8. These will be used for an alpha 8 buffer representing the screen decorations. Enum value matches AIDL R_8 in I6f6b7f22e76609151a413ca6a6dbf55bd91911dd. Bug: 193170859 Test: make Change-Id: I4846327b29736ee811672801a683deb287342a8e
diff --git a/services/surfaceflinger/BufferLayer.h b/services/surfaceflinger/BufferLayer.h index a4c21f4..34d11ac 100644 --- a/services/surfaceflinger/BufferLayer.h +++ b/services/surfaceflinger/BufferLayer.h
@@ -153,7 +153,7 @@ bool onPreComposition(nsecs_t) override; void preparePerFrameCompositionState() override; - static bool getOpacityForFormat(uint32_t format); + static bool getOpacityForFormat(PixelFormat format); // from graphics API const uint32_t mTextureName;