sdm: Add split rectangle support for split rotation.

1. Add support to split rectangle vertically and horizontally.
2. Add debug property to enable/disable split rotation.

Change-Id: I4070e7e754c2a3a3a9ca4f4eab91037f7f9c88b7
This commit is contained in:
Ramkumar Radhakrishnan
2015-05-28 19:02:05 -07:00
committed by Gerrit - the friendly Code Review server
parent d5eab0c7b3
commit 345081196a
4 changed files with 50 additions and 0 deletions

View File

@@ -45,6 +45,10 @@ namespace sdm {
LayerRect Intersection(const LayerRect &rect1, const LayerRect &rect2);
LayerRect Subtract(const LayerRect &rect1, const LayerRect &rect2);
LayerRect Reposition(const LayerRect &rect1, const int &x_offset, const int &y_offset);
void SplitLeftRight(const LayerRect &in_rect, uint32_t split_count, uint32_t align_x,
LayerRect *out_rects);
void SplitTopBottom(const LayerRect &in_rect, uint32_t split_count, uint32_t align_y,
LayerRect *out_rects);
} // namespace sdm
#endif // __RECT_H__