VCL: Rename ApplyMask to DrawDeviceMask in OutputDevice

Change-Id: I3392294f8144a9f3124ada972934bb0452c6e13b
VCL: Move line functions into state areas

Change-Id: I4a92c66892fbb9687b9e7c521c770150b75229b0