sdm: Update layer parameters based on panel orientation

Update layer rotation parameters with panel orientation.
Recalculate destination rect for all layers.

CRs-fixed: 1112326
Change-Id: I95f6428c77b23cf2437c319f6ab519aa3ad245e9
This commit is contained in:
Pullakavi Srinivas
2016-12-30 12:51:06 +05:30
committed by Gerrit - the friendly Code Review server
parent 9b50abe92f
commit 1494a93fc8
5 changed files with 55 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -57,6 +57,7 @@ namespace sdm {
bool flip_horizontal, LayerRect *out_rects);
void MapRect(const LayerRect &src_domain, const LayerRect &dst_domain, const LayerRect &in_rect,
LayerRect *out_rect);
void TransformHV(const LayerRect &src_domain, const LayerRect &in_rect, LayerRect *out_rect);
RectOrientation GetOrientation(const LayerRect &in_rect);
} // namespace sdm