static bool LessThan(const GrCachedLayer& layer, const PictureLayerKey& key) { if (layer.pictureID() == key.pictureID()) { return layer.layerID() < key.layerID(); } return layer.pictureID() < key.pictureID(); }
static bool Equals(const GrCachedLayer& layer, const PictureLayerKey& key) { return layer.pictureID() == key.pictureID() && layer.layerID() == key.layerID(); }