We clear surface as needed depending on Display rect
changes. This should be enough to handle all cases.
Jira: None.
Test: No new regressions seen on Android.
Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
(source_crop.top != source_crop_.top) ||
(source_crop.bottom != source_crop_.bottom)) {
layer_cache_ |= kSourceRectChanged;
- UpdateRenderingDamage(HwcRect<int>(source_crop), HwcRect<int>(source_crop_),
- false);
source_crop_ = source_crop;
source_crop_width_ =
static_cast<int>(ceilf(source_crop.right - source_crop.left));
const HwcRect<float> &source_crop = layer.GetSourceCrop();
CalculateRect(df, target_display_frame);
CalculateSourceRect(source_crop, target_source_crop);
- if (!layer.IsCursorLayer() &&
- (layer.HasDimensionsChanged() || layer.HasSourceRectChanged())) {
+ if (!layer.IsCursorLayer() && (layer.HasDimensionsChanged())) {
only_cursor_layer = false;
}
for (size_t i = 0; i < layers_size; i++) {
const size_t& source_index = source_layers.at(i);
const OverlayLayer& layer = layers.at(source_index);
- if (layer.HasDimensionsChanged() || layer.HasSourceRectChanged()) {
+ if (layer.HasDimensionsChanged()) {
update_rect = true;
break;
}