surfaceflinger: Add QCOM_HARDWARE ifdefs

Change-Id: I37e6600e316f9fa5dbf94db2c70faf602a70a85a