OSDN Git Service

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)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 5 Aug 2011 08:05:44 +0000 (16:05 +0800)
commit96395c8607aa170964744cd8f2d8f3b9dbb3ff3a
tree9e0070afef9a328aa6c646a81a09af25aac8fd3b
parentcb7c9fbea9e511fb3d43b8068e5569f513a73cd2
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