am a59aaed8: am bc881e66: Merge "frameworks/base: Swap width and height of temporary buffer only with orientation change"
Merge commit 'a59aaed81b47f59ee9ee724760c4c39fcf429a18' * commit 'a59aaed81b47f59ee9ee724760c4c39fcf429a18': frameworks/base: Swap width and height of temporary buffer only with
This commit is contained in:
commit
7e9ba2dc3c
@ -495,7 +495,7 @@ status_t LayerBuffer::BufferSource::initTempBuffer() const
|
||||
const ISurface::BufferHeap& buffers(mBufferHeap);
|
||||
uint32_t w = mLayer.mTransformedBounds.width();
|
||||
uint32_t h = mLayer.mTransformedBounds.height();
|
||||
if (buffers.w * h != buffers.h * w) {
|
||||
if (mLayer.getOrientation() & (Transform::ROT_90 | Transform::ROT_270)) {
|
||||
int t = w; w = h; h = t;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user