Merge "Update region sampling to account for window visibility" into tm-qpr-dev