Merge "Reset the dirty region after drawing in hardware."