diff options
author | Roman Stratiienko <roman.o.stratiienko@globallogic.com> | 2021-09-29 12:47:31 +0300 |
---|---|---|
committer | Roman Stratiienko <roman.o.stratiienko@globallogic.com> | 2021-09-29 12:47:31 +0300 |
commit | 5063d53ddf7db2c85ec06152be8ffcd0e2fa9639 (patch) | |
tree | 17c2037c67094ffb0bbd221c36ce6e4431f33edd /include | |
parent | 4f1effa2d6bb8c7a56c1deee17ba604e615d6bf6 (diff) | |
download | drm_hwcomposer-5063d53ddf7db2c85ec06152be8ffcd0e2fa9639.tar.gz |
drm_hwcomposer: Improve handling of blending mode
1. Convert to DrmHwcBlending inside HWC hook.
2. Use map for enum_values for cleaner atomic commit preparation.
Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drmhwcomposer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/drmhwcomposer.h b/include/drmhwcomposer.h index 8abf840..01954a1 100644 --- a/include/drmhwcomposer.h +++ b/include/drmhwcomposer.h @@ -55,9 +55,9 @@ enum DrmHwcTransform { }; enum class DrmHwcBlending : int32_t { - kNone = HWC_BLENDING_NONE, - kPreMult = HWC_BLENDING_PREMULT, - kCoverage = HWC_BLENDING_COVERAGE, + kNone, + kPreMult, + kCoverage, }; struct DrmHwcLayer { |