Skip to content

Commit b7ee8e2

Browse files
mikejurkaAndroid Git Automerger
authored andcommitted
am 6ad5d69: am 0a23267: am bf378fd: Don\'t allow screen invalidations to go outside bounds of screen
* commit '6ad5d69da5cff2e4b5fb7acdb2699e2315b83307': Don't allow screen invalidations to go outside bounds of screen
2 parents 6bf8742 + 6ad5d69 commit b7ee8e2

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
@@ -910,6 +910,8 @@ boolean draw(View view, View.AttachInfo attachInfo, HardwareDrawCallbacks callba
910910
if (canDraw()) {
911911
if (!hasDirtyRegions()) {
912912
dirty = null;
913+
} else if (dirty != null) {
914+
dirty.intersect(0, 0, mWidth, mHeight);
913915
}
914916
attachInfo.mIgnoreDirtyState = true;
915917
attachInfo.mDrawingTime = SystemClock.uptimeMillis();

0 commit comments

Comments
 (0)