am 807f23b: Merge change 1057 into donut

Merge commit '807f23b2d8c7148cf6fc95bb88cfc2f78e4be66a'

* commit '807f23b2d8c7148cf6fc95bb88cfc2f78e4be66a':
  * Add regoin scaling for transparent support
This commit is contained in:
Android (Google) Code Review
2009-05-12 22:39:07 -07:00
committed by The Android Open Source Project
3 changed files with 75 additions and 6 deletions

View File

@@ -960,11 +960,10 @@ public final class ViewRoot extends Handler implements ViewParent,
mTmpLocation[1] + host.mBottom - host.mTop);
host.gatherTransparentRegion(mTransparentRegion);
if (mAppScale != 1.0f) {
mTransparentRegion.scale(mAppScale);
}
// TODO: scale the region, like:
// Region uses native methods. We probabl should have ScalableRegion class.
// Region does not have equals method ?
if (!mTransparentRegion.equals(mPreviousTransparentRegion)) {
mPreviousTransparentRegion.set(mTransparentRegion);
// reconfigure window manager