Merge "Add a templated priority queue class." into master-skia

https://skia.googlesource.com/skia/+/3555bd88a6513d219a084eabd41e9dff9e513605

Change-Id: I0ef6281e6c39ba3c06a55f5ae4a50953fc818198