frameworks/base: Swap width and height of temporary buffer only with
authorOmprakash Dhyade <odhyade@codeaurora.org>
Thu, 5 Aug 2010 23:28:37 +0000 (16:28 -0700)
committerNaomi Luis <nluis@codeaurora.org>
Tue, 10 Aug 2010 23:49:48 +0000 (16:49 -0700)
commit92bd90de145bb377d591217690d1fc096c19c047
tree316d743dd420e6ba3eb77bfe5a1246e9fdc25332
parent0f0dd448ea54ddb760ed77e7d9167b7d7ad1b916
frameworks/base: Swap width and height of temporary buffer only with
orientation change

Current code swaps the width and height by assuming that aspect
ratio of the buffer width and height will be same as that of the
layout clip width and height. That is not always true.
Change the check to orientation change.

Change-Id: Ie387f3a7369025427484e4173cbde7a08df2b9d7
services/surfaceflinger/LayerBuffer.cpp