Lines Matching refs:path

118             return shape.path.mGenerationID == rhs.shape.path.mGenerationID;  in operator ==()
126 static void computePathBounds(const SkPath* path, const SkPaint* paint, PathTexture* texture, in computePathBounds() argument
128 const SkRect& bounds = path->getBounds(); in computePathBounds()
152 static sk_sp<Bitmap> drawPath(const SkPath* path, const SkPaint* paint, PathTexture* texture, in drawPath() argument
155 computePathBounds(path, paint, texture, width, height); in drawPath()
171 canvas.drawPath(*path, pathPaint); in drawPath()
274 PathTexture* PathCache::addTexture(const PathDescription& entry, const SkPath *path, in addTexture() argument
278 PathTexture* texture = new PathTexture(Caches::getInstance(), path->getGenerationID()); in addTexture()
279 sk_sp<Bitmap> bitmap(drawPath(path, paint, texture, mMaxTextureSize)); in addTexture()
331 t->setResult(drawPath(&t->path, &t->paint, t->texture, mMaxTextureSize)); in onProcess()
338 void PathCache::removeDeferred(const SkPath* path) { in removeDeferred() argument
340 mGarbage.push_back(path->getGenerationID()); in removeDeferred()
352 if (key.type == ShapeType::Path && key.shape.path.mGenerationID == generationID) { in clearGarbage()
365 PathTexture* PathCache::get(const SkPath* path, const SkPaint* paint) { in get() argument
367 entry.shape.path.mGenerationID = path->getGenerationID(); in get()
372 texture = addTexture(entry, path, paint); in get()
395 void PathCache::remove(const SkPath* path, const SkPaint* paint) { in remove() argument
397 entry.shape.path.mGenerationID = path->getGenerationID(); in remove()
401 void PathCache::precache(const SkPath* path, const SkPaint* paint) { in precache() argument
407 entry.shape.path.mGenerationID = path->getGenerationID(); in precache()
419 texture = new PathTexture(Caches::getInstance(), path->getGenerationID()); in precache()
420 sp<PathTask> task = new PathTask(path, paint, texture); in precache()
454 SkPath path; in getRoundRect() local
457 path.addRoundRect(r, rx, ry, SkPath::kCW_Direction); in getRoundRect()
459 texture = addTexture(entry, &path, paint); in getRoundRect()
476 SkPath path; in getCircle() local
477 path.addCircle(radius, radius, radius, SkPath::kCW_Direction); in getCircle()
479 texture = addTexture(entry, &path, paint); in getCircle()
497 SkPath path; in getOval() local
500 path.addOval(r, SkPath::kCW_Direction); in getOval()
502 texture = addTexture(entry, &path, paint); in getOval()
520 SkPath path; in getRect() local
523 path.addRect(r, SkPath::kCW_Direction); in getRect()
525 texture = addTexture(entry, &path, paint); in getRect()
547 SkPath path; in getArc() local
551 path.moveTo(r.centerX(), r.centerY()); in getArc()
553 path.arcTo(r, startAngle, sweepAngle, !useCenter); in getArc()
555 path.close(); in getArc()
558 texture = addTexture(entry, &path, paint); in getArc()