frameworks/base: Call setDirtyRect to update dirty rectangle

This change updates dirty rectangle instead of dirty region of a
surface.

Change-Id: Ic07e083e176d22e66fb8c18ebe44d64cd1688d36
Merge remote-tracking branch 'upstream/android-4.4' into android-4.4