commit | 69cbc35b12fd49113bcf6c93265edc5fff3819ec | [log] [tgz] |
---|---|---|
author | Filip Gruszczynski <gruszczy@google.com> | Wed Nov 11 13:46:04 2015 -0800 |
committer | Filip Gruszczynski <gruszczy@google.com> | Thu Nov 12 08:45:37 2015 -0800 |
tree | b4a23dcd26cf781648872232e764938dd2dce7ab | |
parent | 1bc5d9b3d4d4521dc9a1b5954bc571400de6ced4 [diff] |
Refactoring: deduplicate surface bounds calculation. This merges code from WindowStateAnimator.setSurfaceBoundariesLocked and WindowStateAnimator.createSurfaceLocked. We calculate the final surface size and position in both of these methods in very similar way. The minor differences seem like small mistakes that aren't visible, because they happen during surface creation and get fixed very soon after when the boundaries are set. Change-Id: I321cb17831888f97619b0cae73fdaf9cbbc762fb