commit | dd9e75b665130c7aafb456afd3bba1070e70a0ba | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Wed Apr 17 13:00:02 2013 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Apr 17 13:00:02 2013 -0700 |
tree | 23616b2d5d18a96b105f4c6ee8cf68c61a6d901b | |
parent | 0e6602b1d152b356fa81f27646ce9abd74aa7460 [diff] | |
parent | 6fa86729dcc1bc74587af336074efbe90ac7b420 [diff] |
Merge "hwc: Fix code handling downscale limitation"
diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp index 2323030..b81eb5e 100644 --- a/libhwcomposer/hwc_mdpcomp.cpp +++ b/libhwcomposer/hwc_mdpcomp.cpp
@@ -416,6 +416,10 @@ int dWidth = dst.right - dst.left; int dHeight = dst.bottom - dst.top; + if(layer->transform & HAL_TRANSFORM_ROT_90) { + swap(cWidth, cHeight); + } + if((cWidth/dWidth) > 4 || (cHeight/dHeight) > 4) return false; }