Lines Matching refs:paint
344 virtual bool isNonPath(const SkPaint& paint) const { return true; }
357 GrStyledShape makeShape(const SkPaint& paint) const override {
358 return GrStyledShape(fRect, paint);
361 bool strokeAndFillIsConvertedToFill(const SkPaint& paint) const override {
362 SkASSERT(paint.getStyle() == SkPaint::kStrokeAndFill_Style);
364 return (paint.getStrokeJoin() == SkPaint::kMiter_Join &&
365 paint.getStrokeMiter() >= SK_ScalarSqrt2) ||
366 paint.getStrokeJoin() == SkPaint::kRound_Join;
377 GrStyledShape makeShape(const SkPaint& paint) const override {
378 return GrStyledShape(fRRect, paint);
387 bool strokeAndFillIsConvertedToFill(const SkPaint& paint) const override {
388 SkASSERT(paint.getStyle() == SkPaint::kStrokeAndFill_Style);
390 return RectGeo(fRRect.rect()).strokeAndFillIsConvertedToFill(paint);
413 GrStyledShape makeShape(const SkPaint& paint) const override {
414 return GrStyledShape::MakeArc(fOval, fStartAngle, fSweepAngle, fUseCenter, GrStyle(paint));
419 bool isNonPath(const SkPaint& paint) const override { return false; }
444 GrStyledShape makeShape(const SkPaint& paint) const override {
445 return GrStyledShape(fPath, paint);
459 bool strokeAndFillIsConvertedToFill(const SkPaint& paint) const override {
460 SkASSERT(paint.getStyle() == SkPaint::kStrokeAndFill_Style);
469 return RectGeo(rect).strokeAndFillIsConvertedToFill(paint);
474 bool isNonPath(const SkPaint& paint) const override {
509 bool isNonPath(const SkPaint& paint) const override {
510 if (SkPaint::kFill_Style == paint.getStyle() || RRectForStroke::kYes == fRRectForStroke) {
525 TestCase(const Geo& geo, const SkPaint& paint, skiatest::Reporter* r,
527 : fBase(new GrStyledShape(geo.makeShape(paint))) {
2094 for (const SkPaint& paint : paints) {
2095 REPORTER_ASSERT(r, !GrStyledShape(volatileA, paint).hasUnstyledKey());
2096 REPORTER_ASSERT(r, !GrStyledShape(volatileB, paint).hasUnstyledKey());
2098 TestCase caseA(PathGeo(pathA, invert), paint, r);
2099 TestCase caseB(PathGeo(pathB, invert), paint, r);