Lines Matching refs:path
29 void computePathBounds(const SkPath* path, const SkPaint* paint,
31 const SkRect& bounds = path->getBounds();
53 PathCache::PathCache(): ShapeCache<PathCacheEntry>("path",
57 void PathCache::remove(SkPath* path) {
61 if (mCache.getKeyAt(i).path == path) {
76 void PathCache::removeDeferred(SkPath* path) {
78 mGarbage.push(path);
90 PathTexture* PathCache::get(SkPath* path, SkPaint* paint) {
91 const SkPath* sourcePath = path->getSourcePath();
92 if (sourcePath && sourcePath->getGenerationID() == path->getGenerationID()) {
93 path = const_cast<SkPath*>(sourcePath);
96 PathCacheEntry entry(path, paint);
103 texture = addTexture(entry, path, paint);
104 } else if (path->getGenerationID() != texture->generation) {
106 texture = addTexture(entry, path, paint);