Added row based extend borders Required for frame-based multithreading Change-Id: I361ec468b5bda7836116c5f0bf3a83f60c214a73