Lines Matching refs:paint

54 PathDescription::PathDescription(ShapeType type, SkPaint* paint):
56 join(paint->getStrokeJoin()),
57 cap(paint->getStrokeCap()),
58 style(paint->getStyle()),
59 miter(paint->getStrokeMiter()),
60 strokeWidth(paint->getStrokeWidth()),
61 pathEffect(paint->getPathEffect()) {
85 bool PathCache::canDrawAsConvexPath(SkPath* path, SkPaint* paint) {
87 return paint->getPathEffect() == NULL && path->getConvexity() == SkPath::kConvex_Convexity;
90 void PathCache::computePathBounds(const SkPath* path, const SkPaint* paint,
93 PathCache::computeBounds(bounds, paint, left, top, offset, width, height);
96 void PathCache::computeBounds(const SkRect& bounds, const SkPaint* paint,
104 offset = (int) floorf(fmax(paint->getStrokeWidth(), 1.0f) * 1.5f + 0.5f);
116 static void initPaint(SkPaint& paint) {
117 // Make sure the paint is opaque, color, alpha, filter, etc.
119 paint.setColor(0xff000000);
120 paint.setAlpha(255);
121 paint.setColorFilter(NULL);
122 paint.setMaskFilter(NULL);
123 paint.setShader(NULL);
125 SkSafeUnref(paint.setXfermode(mode));
128 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap,
132 SkPaint pathPaint(*paint);
249 const SkPaint* paint) {
254 computePathBounds(path, paint, left, top, offset, width, height);
261 drawPath(path, paint, bitmap, left, top, offset, width, height);
329 PathCache::computePathBounds(t->path, t->paint, left, top, offset, width, height);
340 drawPath(t->path, t->paint, *bitmap, left, top, offset, width, height);
401 PathTexture* PathCache::get(SkPath* path, SkPaint* paint) {
404 PathDescription entry(kShapePath, paint);
410 texture = addTexture(entry, path, paint);
432 texture = addTexture(entry, path, paint);
439 void PathCache::precache(SkPath* path, SkPaint* paint) {
446 PathDescription entry(kShapePath, paint);
463 sp<PathTask> task = new PathTask(path, paint, texture);
487 float rx, float ry, SkPaint* paint) {
488 PathDescription entry(kShapeRoundRect, paint);
502 texture = addTexture(entry, &path, paint);
512 PathTexture* PathCache::getCircle(float radius, SkPaint* paint) {
513 PathDescription entry(kShapeCircle, paint);
522 texture = addTexture(entry, &path, paint);
532 PathTexture* PathCache::getOval(float width, float height, SkPaint* paint) {
533 PathDescription entry(kShapeOval, paint);
545 texture = addTexture(entry, &path, paint);
555 PathTexture* PathCache::getRect(float width, float height, SkPaint* paint) {
556 PathDescription entry(kShapeRect, paint);
568 texture = addTexture(entry, &path, paint);
579 float startAngle, float sweepAngle, bool useCenter, SkPaint* paint) {
580 PathDescription entry(kShapeArc, paint);
601 texture = addTexture(entry, &path, paint);