Revert "Revert "frameworks/base: Call setDirtyRect to update dirty rectangle""

This reverts commit 30c14cfff6d0d8c8ca4e55279fe7045be84c3898.