Forward-port surface dithering from CM10.1

This allows the use of 16-bit color displays without excessive color
banding;

Change-Id: Icb469b9cb4beb686516c60bb576dbd0a73f505e0
Merge branch 'cm-10.2' of https://github.com/CyanogenMod/android_frameworks_native into DJL10.2