/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowPaintTest.java | 75 Paint origPaint = new Paint(); in createPaintFromPaint() local 76 assertThat(new Paint(origPaint).getTextLocale()).isSameInstanceAs(origPaint.getTextLocale()); in createPaintFromPaint()
|
/external/skia/src/core/ |
D | SkDraw.cpp | 42 static SkPaint make_paint_with_image(const SkPaint& origPaint, const SkBitmap& bitmap, in make_paint_with_image() argument 45 SkPaint paint(origPaint); in make_paint_with_image() 46 paint.setShader(SkMakeBitmapShaderForPaint(origPaint, bitmap, SkTileMode::kClamp, in make_paint_with_image() 884 void SkDraw::drawPath(const SkPath& origSrcPath, const SkPaint& origPaint, in drawPath() argument 903 if (origPaint.getPathEffect() || origPaint.getStyle() != SkPaint::kFill_Style) { in drawPath() 919 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPath() 923 if (SkDrawTreatAsHairline(origPaint, matrixProvider->localToDevice(), &coverage)) { in drawPath() 926 } else if (SkBlendMode_SupportsCoverageAsAlpha(origPaint.getBlendMode())) { in drawPath() 930 origPaint.getAlpha())); in drawPath() 936 newAlpha = origPaint.getAlpha() * scale >> 8; in drawPath() [all …]
|
D | SkBlitter.cpp | 692 const SkPaint& origPaint, in Choose() argument 703 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in Choose()
|
/external/skqp/src/core/ |
D | SkDraw.cpp | 41 const SkPaint& origPaint, const SkBitmap& bitmap, SkMatrix* matrix = nullptr) { in make_paint_with_image() argument 42 SkPaint paint(origPaint); in make_paint_with_image() 883 void SkDraw::drawPath(const SkPath& origSrcPath, const SkPaint& origPaint, in drawPath() argument 903 if (origPaint.getPathEffect() || origPaint.getStyle() != SkPaint::kFill_Style) { in drawPath() 920 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPath() 924 if (SkDrawTreatAsHairline(origPaint, *matrix, &coverage)) { in drawPath() 927 } else if (SkBlendMode_SupportsCoverageAsAlpha(origPaint.getBlendMode())) { in drawPath() 931 origPaint.getAlpha())); in drawPath() 937 newAlpha = origPaint.getAlpha() * scale >> 8; in drawPath() 1065 const SkRect* dstBounds, const SkPaint& origPaint) const { in drawBitmap() [all …]
|
D | SkBitmapDevice.cpp | 566 void SkBitmapDevice::drawDevice(SkBaseDevice* device, int x, int y, const SkPaint& origPaint) { in drawDevice() argument 567 SkASSERT(!origPaint.getImageFilter()); in drawDevice() 570 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawDevice() 582 SkPaint paint(origPaint); in drawDevice() 618 void SkBitmapDevice::drawSpecial(SkSpecialImage* src, int x, int y, const SkPaint& origPaint, in drawSpecial() argument 623 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawSpecial()
|
D | SkCanvas.cpp | 1808 LatticePaint(const SkPaint* origPaint) : fPaint(origPaint) { in LatticePaint() argument 1809 if (!origPaint) { in LatticePaint() 1812 if (origPaint->getFilterQuality() > kLow_SkFilterQuality) { in LatticePaint() 1815 if (origPaint->getMaskFilter()) { in LatticePaint() 1818 if (origPaint->isAntiAlias()) { in LatticePaint()
|
D | SkBlitter.cpp | 791 const SkPaint& origPaint, in Choose() argument 801 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in Choose()
|
/external/skia/gm/ |
D | strokes.cpp | 400 SkPaint origPaint; in onDraw() local 401 origPaint.setAntiAlias(true); in onDraw() 402 origPaint.setStyle(SkPaint::kStroke_Style); in onDraw() 403 SkPaint fillPaint(origPaint); in onDraw() 405 SkPaint strokePaint(origPaint); in onDraw() 427 canvas->drawPath(orig, origPaint); in onDraw()
|
/external/skqp/src/gpu/ |
D | SkGpuDevice.cpp | 565 const SkPaint& origPaint) { in drawStrokedLine() argument 570 SkASSERT(SkPaint::kRound_Cap != origPaint.getStrokeCap()); in drawStrokedLine() 571 SkASSERT(SkPaint::kStroke_Style == origPaint.getStyle()); in drawStrokedLine() 572 SkASSERT(!origPaint.getPathEffect()); in drawStrokedLine() 573 SkASSERT(!origPaint.getMaskFilter()); in drawStrokedLine() 575 const SkScalar halfWidth = 0.5f * origPaint.getStrokeWidth(); in drawStrokedLine() 586 SkPaint newPaint(origPaint); in drawStrokedLine() 590 if (SkPaint::kButt_Cap != origPaint.getStrokeCap()) { in drawStrokedLine() 893 const SkPaint& origPaint, in drawTiledBitmap() argument 901 LogDrawScaleFactor(viewMatrix, origPaint.getFilterQuality()); in drawTiledBitmap() [all …]
|
/external/skqp/gm/ |
D | strokes.cpp | 387 SkPaint origPaint; in onDraw() local 388 origPaint.setAntiAlias(true); in onDraw() 389 origPaint.setStyle(SkPaint::kStroke_Style); in onDraw() 390 SkPaint fillPaint(origPaint); in onDraw() 392 SkPaint strokePaint(origPaint); in onDraw() 414 canvas->drawPath(orig, origPaint); in onDraw()
|
/external/skia/src/gpu/ |
D | SkGpuDevice.cpp | 783 const SkPaint& origPaint) { argument 787 SkTCopyOnFirstWrite<SkPaint> paint(&origPaint); 790 paint.writable()->setColor(SkColorSetARGB(origPaint.getAlpha(), 0xFF, 0xFF, 0xFF));
|
/external/skia/src/xps/ |
D | SkXPSDevice.cpp | 1149 void SkXPSDevice::drawPaint(const SkPaint& origPaint) { in drawPaint() argument 1153 SkPaint* fillPaint = const_cast<SkPaint*>(&origPaint); in drawPaint() 1154 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPaint() 1495 const SkPaint& origPaint, in drawPath() argument 1497 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPath()
|
/external/skqp/src/xps/ |
D | SkXPSDevice.cpp | 1167 void SkXPSDevice::drawPaint(const SkPaint& origPaint) { in drawPaint() argument 1171 SkPaint* fillPaint = const_cast<SkPaint*>(&origPaint); in drawPaint() 1172 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPaint() 1505 const SkPaint& origPaint, in drawPath() argument 1507 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPath()
|
/external/skia/src/pdf/ |
D | SkPDFDevice.cpp | 496 const SkPaint& origPaint) { in internalDrawPathWithFilter() argument 497 SkASSERT(origPaint.getMaskFilter()); in internalDrawPathWithFilter() 499 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in internalDrawPathWithFilter()
|
/external/skqp/src/pdf/ |
D | SkPDFDevice.cpp | 729 const SkPaint& origPaint) { in internalDrawPathWithFilter() argument 730 SkASSERT(origPaint.getMaskFilter()); in internalDrawPathWithFilter() 732 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in internalDrawPathWithFilter()
|