aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRoman Stratiienko <roman.o.stratiienko@globallogic.com>2021-09-29 12:47:35 +0300
committerRoman Stratiienko <roman.o.stratiienko@globallogic.com>2021-09-29 12:47:35 +0300
commit2ed4cbe40f9ebee9ae355b7008d048c61050046a (patch)
tree7988e2fcb5abdb008af1908dde55327d118d6d59 /include
parent5063d53ddf7db2c85ec06152be8ffcd0e2fa9639 (diff)
downloaddrm_hwcomposer-2ed4cbe40f9ebee9ae355b7008d048c61050046a.tar.gz
drm_hwcomposer: Convert transform value at HWC hook call
One more step towards "frontend" isolation. Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
Diffstat (limited to 'include')
-rw-r--r--include/drmhwcomposer.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/drmhwcomposer.h b/include/drmhwcomposer.h
index 01954a1..d02445b 100644
--- a/include/drmhwcomposer.h
+++ b/include/drmhwcomposer.h
@@ -45,7 +45,7 @@ enum class DrmHwcSampleRange : int32_t {
kLimitedRange,
};
-enum DrmHwcTransform {
+enum DrmHwcTransform : uint32_t {
kIdentity = 0,
kFlipH = 1 << 0,
kFlipV = 1 << 1,
@@ -66,7 +66,7 @@ struct DrmHwcLayer {
std::shared_ptr<DrmFbIdHandle> FbIdHandle;
int gralloc_buffer_usage = 0;
- uint32_t transform;
+ DrmHwcTransform transform{};
DrmHwcBlending blending = DrmHwcBlending::kNone;
uint16_t alpha = 0xffff;
hwc_frect_t source_crop;
@@ -78,8 +78,6 @@ struct DrmHwcLayer {
int ImportBuffer(DrmDevice *drmDevice);
- void SetTransform(int32_t sf_transform);
-
bool protected_usage() const {
return (gralloc_buffer_usage & GRALLOC_USAGE_PROTECTED) ==
GRALLOC_USAGE_PROTECTED;