surfaceflinger: use layer drawing dataspace

Layer::getDataSpace returns the current (as opposed to drawing)
dataspace, which we almost never want and is racy.  Remove the
helper and access the dataspace directly.

Bug: 79210409
Test: boots, Photos
Change-Id: Ifec7055cf0a1f2d84da7ad58e27be2c01082e6e9
3 files changed