Skip to content

Commit a7e1d8d

Browse files
mikejurkaAndroid Git Automerger
authored andcommitted
am bf378fd: Don\'t allow screen invalidations to go outside bounds of screen
* commit 'bf378fd7d7a91085685fe9e5528b84c485041c77': Don't allow screen invalidations to go outside bounds of screen
2 parents 2a24914 + bf378fd commit a7e1d8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/java/android/view/HardwareRenderer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,8 @@ boolean draw(View view, View.AttachInfo attachInfo, HardwareDrawCallbacks callba
811811
if (canDraw()) {
812812
if (!hasDirtyRegions()) {
813813
dirty = null;
814+
} else if (dirty != null) {
815+
dirty.intersect(0, 0, mWidth, mHeight);
814816
}
815817
attachInfo.mIgnoreDirtyState = true;
816818
attachInfo.mDrawingTime = SystemClock.uptimeMillis();

0 commit comments

Comments
 (0)