Optimize ThreadStateTrack::UpdatePrimitives
Optimize ThreadStateTrack::UpdatePrimitives

This is on the idea of `TimerTrack::UpdatePrimitives` of not drawing events that
would fall on the same pixel.

google/orbit,google/orbit,google/orbit,google/orbit