• Home
  • Raw
  • Download

Lines Matching refs:paint

55 PathDescription::PathDescription(ShapeType type, const SkPaint* paint):  in PathDescription()  argument
57 join(paint->getStrokeJoin()), in PathDescription()
58 cap(paint->getStrokeCap()), in PathDescription()
59 style(paint->getStyle()), in PathDescription()
60 miter(paint->getStrokeMiter()), in PathDescription()
61 strokeWidth(paint->getStrokeWidth()), in PathDescription()
62 pathEffect(paint->getPathEffect()) { in PathDescription()
82 bool PathCache::canDrawAsConvexPath(SkPath* path, const SkPaint* paint) { in canDrawAsConvexPath() argument
84 return paint->getPathEffect() == NULL && path->getConvexity() == SkPath::kConvex_Convexity; in canDrawAsConvexPath()
87 void PathCache::computePathBounds(const SkPath* path, const SkPaint* paint, in computePathBounds() argument
90 PathCache::computeBounds(bounds, paint, left, top, offset, width, height); in computePathBounds()
93 void PathCache::computeBounds(const SkRect& bounds, const SkPaint* paint, in computeBounds() argument
101 offset = (int) floorf(fmax(paint->getStrokeWidth(), 1.0f) * 1.5f + 0.5f); in computeBounds()
112 static void initPaint(SkPaint& paint) { in initPaint() argument
115 paint.setColor(SK_ColorBLACK); in initPaint()
116 paint.setAlpha(255); in initPaint()
117 paint.setColorFilter(NULL); in initPaint()
118 paint.setMaskFilter(NULL); in initPaint()
119 paint.setShader(NULL); in initPaint()
121 SkSafeUnref(paint.setXfermode(mode)); in initPaint()
124 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, in drawPath() argument
128 SkPaint pathPaint(*paint); in drawPath()
257 const SkPaint* paint) { in addTexture() argument
262 computePathBounds(path, paint, left, top, offset, width, height); in addTexture()
269 drawPath(path, paint, bitmap, left, top, offset, width, height); in addTexture()
342 PathCache::computePathBounds(&t->path, &t->paint, left, top, offset, width, height); in onProcess()
353 drawPath(&t->path, &t->paint, *bitmap, left, top, offset, width, height); in onProcess()
419 PathTexture* PathCache::get(const SkPath* path, const SkPaint* paint) { in get() argument
422 PathDescription entry(kShapePath, paint); in get()
428 texture = addTexture(entry, path, paint); in get()
450 texture = addTexture(entry, path, paint); in get()
457 void PathCache::precache(const SkPath* path, const SkPaint* paint) { in precache() argument
464 PathDescription entry(kShapePath, paint); in precache()
481 sp<PathTask> task = new PathTask(path, paint, texture); in precache()
505 float rx, float ry, const SkPaint* paint) { in getRoundRect() argument
506 PathDescription entry(kShapeRoundRect, paint); in getRoundRect()
520 texture = addTexture(entry, &path, paint); in getRoundRect()
530 PathTexture* PathCache::getCircle(float radius, const SkPaint* paint) { in getCircle() argument
531 PathDescription entry(kShapeCircle, paint); in getCircle()
540 texture = addTexture(entry, &path, paint); in getCircle()
550 PathTexture* PathCache::getOval(float width, float height, const SkPaint* paint) { in getOval() argument
551 PathDescription entry(kShapeOval, paint); in getOval()
563 texture = addTexture(entry, &path, paint); in getOval()
573 PathTexture* PathCache::getRect(float width, float height, const SkPaint* paint) { in getRect() argument
574 PathDescription entry(kShapeRect, paint); in getRect()
586 texture = addTexture(entry, &path, paint); in getRect()
597 float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) { in getArc() argument
598 PathDescription entry(kShapeArc, paint); in getArc()
619 texture = addTexture(entry, &path, paint); in getArc()