diff options
author | Sean Paul <seanpaul@chromium.org> | 2015-10-15 15:17:31 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2015-10-15 16:59:45 -0400 |
commit | d8aefb635a854c36b0cf2eb36ecdf9070ddc7151 (patch) | |
tree | 22c3618f95a672c6872d65a7013f0253c6f866f0 /drmplane.cpp | |
parent | 738593c7c5e96b8a16fad8be661710374994e510 (diff) | |
download | drm_hwcomposer-d8aefb635a854c36b0cf2eb36ecdf9070ddc7151.tar.gz |
drm_hwcomposer: Use layer alpha to blend planes
Send the layer alpha to the drm plane's alpha property to
properly blend layers.
BUG=b/24821110
TEST=Tested on smaug with Downloads/About windows, blend properly
Change-Id: If96eb28d65d018863c39bc5a3554daef0264144b
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drmplane.cpp')
-rw-r--r-- | drmplane.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drmplane.cpp b/drmplane.cpp index 3f17d7c..5785d5a 100644 --- a/drmplane.cpp +++ b/drmplane.cpp @@ -124,6 +124,10 @@ int DrmPlane::Init() { if (ret) ALOGE("Could not get rotation property"); + ret = drm_->GetPlaneProperty(*this, "alpha", &alpha_property_); + if (ret) + ALOGI("Could not get alpha property"); + return 0; } @@ -182,4 +186,8 @@ const DrmProperty &DrmPlane::src_h_property() const { const DrmProperty &DrmPlane::rotation_property() const { return rotation_property_; } + +const DrmProperty &DrmPlane::alpha_property() const { + return alpha_property_; +} } |