frameworks/native: Reset update buffer geometry

Reset update buffer geometry when setBuffersGeometry is invoked to
reallocate the buffer for the new resolution.

Change-Id: I5da0bc8739af5e7c619ee6185b33712015112672
merge changes from CyanogenMod 10.2 into local branch