Lines Matching refs:paint
38 void SkLayerRasterizer::addLayer(const SkPaint& paint, SkScalar dx, in addLayer() argument
42 new (&rec->fPaint) SkPaint(paint); in addLayer()
55 const SkPaint& paint = rec->fPaint; in compute_bounds() local
59 if (paint.getPathEffect() || paint.getStyle() != SkPaint::kFill_Style) { in compute_bounds()
60 paint.getFillPath(path, &fillPath); in compute_bounds()
75 if (!SkDraw::DrawToMask(devPath, clipBounds, paint.getMaskFilter(), in compute_bounds()
146 static void paint_read(SkPaint* paint, SkFlattenableReadBuffer& buffer) { in paint_read() argument
147 paint->setAntiAlias(buffer.readBool()); in paint_read()
148 paint->setStyle((SkPaint::Style)buffer.readU8()); in paint_read()
149 paint->setAlpha(buffer.readU8()); in paint_read()
151 if (paint->getStyle() != SkPaint::kFill_Style) { in paint_read()
152 paint->setStrokeWidth(buffer.readScalar()); in paint_read()
153 paint->setStrokeMiter(buffer.readScalar()); in paint_read()
154 paint->setStrokeCap((SkPaint::Cap)buffer.readU8()); in paint_read()
155 paint->setStrokeJoin((SkPaint::Join)buffer.readU8()); in paint_read()
158 SkSafeUnref(paint->setMaskFilter((SkMaskFilter*)buffer.readFlattenable())); in paint_read()
159 SkSafeUnref(paint->setPathEffect((SkPathEffect*)buffer.readFlattenable())); in paint_read()
160 SkSafeUnref(paint->setRasterizer((SkRasterizer*)buffer.readFlattenable())); in paint_read()
161 SkSafeUnref(paint->setXfermode((SkXfermode*)buffer.readFlattenable())); in paint_read()
164 static void paint_write(const SkPaint& paint, SkFlattenableWriteBuffer& buffer) { in paint_write() argument
165 buffer.writeBool(paint.isAntiAlias()); in paint_write()
166 buffer.write8(paint.getStyle()); in paint_write()
167 buffer.write8(paint.getAlpha()); in paint_write()
169 if (paint.getStyle() != SkPaint::kFill_Style) { in paint_write()
170 buffer.writeScalar(paint.getStrokeWidth()); in paint_write()
171 buffer.writeScalar(paint.getStrokeMiter()); in paint_write()
172 buffer.write8(paint.getStrokeCap()); in paint_write()
173 buffer.write8(paint.getStrokeJoin()); in paint_write()
176 buffer.writeFlattenable(paint.getMaskFilter()); in paint_write()
177 buffer.writeFlattenable(paint.getPathEffect()); in paint_write()
178 buffer.writeFlattenable(paint.getRasterizer()); in paint_write()
179 buffer.writeFlattenable(paint.getXfermode()); in paint_write()