summaryrefslogtreecommitdiff
path: root/libs/hwui/Gainmap.h
diff options
context:
space:
mode:
author Sally Qi <sallyqi@google.com> 2023-03-03 15:50:06 -0800
committer Sally Qi <sallyqi@google.com> 2023-03-07 11:23:49 -0800
commit587fb57aabc9871950307a70855af9491319523d (patch)
treed40467e37592c803a4d2690096ee5c92346fe34c /libs/hwui/Gainmap.h
parent5a0ac4f8e337b2892c0806095ffbe13feb8f99d8 (diff)
Support gainmap HW copy.
- 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
Diffstat (limited to 'libs/hwui/Gainmap.h')
-rw-r--r--libs/hwui/Gainmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/Gainmap.h b/libs/hwui/Gainmap.h
index 765f98a257b8..3bc183ab854f 100644
--- a/libs/hwui/Gainmap.h
+++ b/libs/hwui/Gainmap.h
@@ -27,6 +27,7 @@ class Gainmap : public LightRefBase<Gainmap> {
public:
SkGainmapInfo info;
sk_sp<Bitmap> bitmap;
+ static sp<Gainmap> allocateHardwareGainmap(const sp<Gainmap>& srcGainmap);
};
} // namespace android::uirenderer