diff options
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_layers.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp index a41f24c1..d2456c48 100644 --- a/sdm/libs/hwc2/hwc_layers.cpp +++ b/sdm/libs/hwc2/hwc_layers.cpp @@ -302,6 +302,7 @@ HWC2::Error HWCLayer::SetLayerBuffer(buffer_handle_t buffer, int32_t acquire_fen layer_buffer->planes[0].offset = handle->offset; layer_buffer->planes[0].stride = UINT32(handle->width); layer_buffer->size = handle->size; + buffer_flipped_ = reinterpret_cast<uint64_t>(handle) != layer_buffer->buffer_id; layer_buffer->buffer_id = reinterpret_cast<uint64_t>(handle); layer_buffer->handle_id = handle->id; @@ -371,6 +372,7 @@ HWC2::Error HWCLayer::SetLayerColor(hwc_color_t color) { if (layer_->solid_fill_color != GetUint32Color(color)) { layer_->solid_fill_color = GetUint32Color(color); surface_updated_ = true; + needs_validate_ = true; } else { surface_updated_ = false; } |