Make TryDrawPolyLineDirect a public function of OutputDevice

Change-Id: I24a571080ad7301c86065e75560b94091120ce0b