diff options
author | Naseer Ahmed <naseer@codeaurora.org> | 2016-07-22 20:02:31 -0400 |
---|---|---|
committer | Naseer Ahmed <naseer@codeaurora.org> | 2016-07-27 18:32:33 -0400 |
commit | 16c72b9769538c82284b9ee3a2525cb3b367b178 (patch) | |
tree | 47eda9bac72cee1520c6894734a84d03ce15e056 /sdm/libs/hwc2/hwc_layers.cpp | |
parent | c71a46c257e5aa988936ed4cb82c99ab0da8338d (diff) | |
download | display-16c72b9769538c82284b9ee3a2525cb3b367b178.tar.gz |
hwc2: Fix solid fill
* Solid fill layers need a valid src rect
* Fix color values and packing
Bug: 30255380
Bug: 30257604
Change-Id: Iee92a053e145898688a9b3494d2d9cbdffdf9f56
CRs-Fixed: 1045472
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_layers.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp index d35523d9..098959b7 100644 --- a/sdm/libs/hwc2/hwc_layers.cpp +++ b/sdm/libs/hwc2/hwc_layers.cpp @@ -128,9 +128,8 @@ HWC2::Error HWCLayer::SetLayerBlendMode(HWC2::BlendMode mode) { HWC2::Error HWCLayer::SetLayerColor(hwc_color_t color) { layer_->solid_fill_color = GetUint32Color(color); layer_->input_buffer->format = kFormatARGB8888; - DLOGD("Layer color set to: %u", layer_->solid_fill_color); - DLOGD("[%" PRIu64 "][%" PRIu64 "] Layer color set to %u %" PRIu64, display_id_, id_, - layer_->solid_fill_color); + DLOGV_IF(kTagCompManager, "[%" PRIu64 "][%" PRIu64 "] Layer color set to %x", display_id_, id_, + layer_->solid_fill_color); return HWC2::Error::None; } @@ -278,7 +277,7 @@ uint32_t HWCLayer::GetUint32Color(const hwc_color_t &source) { uint32_t r = UINT32(source.r) << 16; uint32_t g = UINT32(source.g) << 8; uint32_t b = UINT32(source.b); - uint32_t color = a & r & g & b; + uint32_t color = a | r | g | b; return color; } |