summaryrefslogtreecommitdiff
path: root/libs/hwui/Gainmap.cpp
AgeCommit message (Collapse)Author
2024-10-02Properly convert A8 -> RGBA_8888 gainmap contents John Reck
When doing the fallback from alpha8 to rgba8888 when alpha8 gralloc buffers are not available, we need to convert the contents as well to ensure that the gainmap shader processes the correct channel(s) Bug: 356778382 Test: silkfx w/ hardware allocation; updated uirendering GainmapTests Flag: EXEMPT bugfix Change-Id: I4bc571cd9e1f7715a1e269e516ce2678df297274
2023-03-07Support gainmap HW copy. Sally Qi
- for Bitmap::allocateHardwareBitmap to create and upload a hardware version of the gainmap. Bug: 267216439 Test: android.graphics.cts.BitmapFactoryTest, android.graphics.cts.BitmapRegionDecoderTest, android.graphics.cts.ImageDecoderTest, android.graphics.cts.GainmapTest Change-Id: Ie080896425dc82a605b2bc41e97ddc2420f5328a