Merge "Correct the bound if it's from outside of screen"

This commit is contained in:
Jackal Guo
2020-02-22 01:11:33 +00:00
committed by Android (Google) Code Review

View File

@@ -1646,7 +1646,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
}
private void updateScreenMatrixForEmbeddedHierarchy() {
getBoundsOnScreen(mTmpRect, true);
getBoundsOnScreen(mTmpRect);
mTmpMatrix.reset();
mTmpMatrix.setTranslate(mTmpRect.left, mTmpRect.top);
mTmpMatrix.postScale(mScreenRect.width() / (float) mSurfaceWidth,