示例#1
0
    static bool LessThan(const GrCachedLayer& layer, const PictureLayerKey& key) {
        if (layer.pictureID() == key.pictureID()) {
            return layer.layerID() < key.layerID();
        }

        return layer.pictureID() < key.pictureID();
    }
示例#2
0
 static bool Equals(const GrCachedLayer& layer, const PictureLayerKey& key) {
     return layer.pictureID() == key.pictureID() && layer.layerID() == key.layerID();
 }