return current_rendering_damage_;
}
+ if (surface_damage_ == display_frame_) {
+ current_rendering_damage_ = display_frame_;
+ return current_rendering_damage_;
+ }
+
current_rendering_damage_.reset();
int ox = 0, oy = 0;
HwcRect<int> rect = {0, 0, 0, 0};
int lmax = std::max(rect1.left, rect2.left);
- int rmax = std::max(rect1.right, rect2.right);
int tmax = std::max(rect1.top, rect2.top);
- int bmax = std::max(rect1.bottom, rect2.bottom);
- int lmin = std::min(rect1.left, rect2.left);
int rmin = std::min(rect1.right, rect2.right);
- int tmin = std::min(rect1.top, rect2.top);
int bmin = std::min(rect1.bottom, rect2.bottom);
- if (lmax == rmax || tmax == bmax)
- return rect;
-
- if (lmin == rmin || tmin == bmin)
+ if (rmin < lmax || bmin < tmax)
return rect;
rect.left = lmax;