Home
last modified time | relevance | path

Searched refs:origPaint (Results 1 – 25 of 26) sorted by relevance

12

/external/skqp/src/gpu/text/
DGrTextUtils.cpp109 const SkPaint& origPaint, const SkMatrix& viewMatrix, in DrawBigPosText() argument
113 if (!origPaint.countText(text, byteLength)) { in DrawBigPosText()
117 SkPaint paint(origPaint); in DrawBigPosText()
138 paint.setStyle(origPaint.getStyle()); in DrawBigPosText()
139 paint.setPathEffect(origPaint.refPathEffect()); in DrawBigPosText()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPaintTest.java78 Paint origPaint = new Paint(); in createPaintFromPaint() local
79 assertThat(new Paint(origPaint).getTextLocale()).isSameAs(origPaint.getTextLocale()); in createPaintFromPaint()
/external/skia/src/core/
DSkDraw.cpp42 const SkPaint& origPaint, const SkBitmap& bitmap, SkMatrix* matrix = nullptr) { in make_paint_with_image() argument
43 SkPaint paint(origPaint); in make_paint_with_image()
1055 void SkDraw::drawPath(const SkPath& origSrcPath, const SkPaint& origPaint, in drawPath() argument
1081 if (origPaint.getPathEffect() || origPaint.getStyle() != SkPaint::kFill_Style) { in drawPath()
1098 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPath()
1102 if (SkDrawTreatAsHairline(origPaint, *matrix, &coverage)) { in drawPath()
1105 } else if (SkBlendMode_SupportsCoverageAsAlpha(origPaint.getBlendMode())) { in drawPath()
1109 origPaint.getAlpha())); in drawPath()
1115 newAlpha = origPaint.getAlpha() * scale >> 8; in drawPath()
1242 const SkRect* dstBounds, const SkPaint& origPaint) const { in drawBitmap()
[all …]
DSkBitmapDevice.cpp378 void SkBitmapDevice::drawDevice(SkBaseDevice* device, int x, int y, const SkPaint& origPaint) { in drawDevice() argument
379 SkASSERT(!origPaint.getImageFilter()); in drawDevice()
382 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawDevice()
416 void SkBitmapDevice::drawSpecial(SkSpecialImage* src, int x, int y, const SkPaint& origPaint, in drawSpecial() argument
421 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawSpecial()
DSkBlitter.cpp932 const SkPaint& origPaint, in Choose() argument
944 auto* shader = as_SB(origPaint.getShader()); in Choose()
945 SkColorFilter* cf = origPaint.getColorFilter(); in Choose()
946 SkBlendMode mode = origPaint.getBlendMode(); in Choose()
949 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in Choose()
951 if (origPaint.getMaskFilter() != nullptr && in Choose()
952 as_MFB(origPaint.getMaskFilter())->getFormat() == SkMask::k3D_Format) { in Choose()
DSkCanvas.cpp1800 NoneOrLowQualityFilterPaint(const SkPaint* origPaint) { in NoneOrLowQualityFilterPaint() argument
1801 if (origPaint && origPaint->getFilterQuality() > kLow_SkFilterQuality) { in NoneOrLowQualityFilterPaint()
1802 fLazyPaint.set(*origPaint); in NoneOrLowQualityFilterPaint()
1806 fPaint = origPaint; in NoneOrLowQualityFilterPaint()
/external/skqp/src/core/
DSkDraw.cpp41 const SkPaint& origPaint, const SkBitmap& bitmap, SkMatrix* matrix = nullptr) { in make_paint_with_image() argument
42 SkPaint paint(origPaint); in make_paint_with_image()
1036 void SkDraw::drawPath(const SkPath& origSrcPath, const SkPaint& origPaint, in drawPath() argument
1054 if (origPaint.getPathEffect() || origPaint.getStyle() != SkPaint::kFill_Style) { in drawPath()
1071 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPath()
1075 if (SkDrawTreatAsHairline(origPaint, *matrix, &coverage)) { in drawPath()
1078 } else if (SkBlendMode_SupportsCoverageAsAlpha(origPaint.getBlendMode())) { in drawPath()
1082 origPaint.getAlpha())); in drawPath()
1088 newAlpha = origPaint.getAlpha() * scale >> 8; in drawPath()
1215 const SkRect* dstBounds, const SkPaint& origPaint) const { in drawBitmap()
[all …]
DSkBlitter.cpp929 const SkPaint& origPaint, in Choose() argument
941 auto* shader = as_SB(origPaint.getShader()); in Choose()
942 SkColorFilter* cf = origPaint.getColorFilter(); in Choose()
943 SkBlendMode mode = origPaint.getBlendMode(); in Choose()
946 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in Choose()
948 if (origPaint.getMaskFilter() != nullptr && in Choose()
949 as_MFB(origPaint.getMaskFilter())->getFormat() == SkMask::k3D_Format) { in Choose()
DSkBitmapDevice.cpp409 void SkBitmapDevice::drawSpecial(SkSpecialImage* src, int x, int y, const SkPaint& origPaint, in drawSpecial() argument
414 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawSpecial()
/external/skia/src/gpu/
DSkGpuDevice.cpp555 const SkPaint& origPaint) { in drawStrokedLine() argument
560 SkASSERT(SkPaint::kRound_Cap != origPaint.getStrokeCap()); in drawStrokedLine()
561 SkASSERT(SkPaint::kStroke_Style == origPaint.getStyle()); in drawStrokedLine()
562 SkASSERT(!origPaint.getPathEffect()); in drawStrokedLine()
563 SkASSERT(!origPaint.getMaskFilter()); in drawStrokedLine()
565 const SkScalar halfWidth = 0.5f * origPaint.getStrokeWidth(); in drawStrokedLine()
576 SkPaint newPaint(origPaint); in drawStrokedLine()
580 if (SkPaint::kButt_Cap != origPaint.getStrokeCap()) { in drawStrokedLine()
882 const SkPaint& origPaint, in drawTiledBitmap() argument
890 LogDrawScaleFactor(viewMatrix, origPaint.getFilterQuality()); in drawTiledBitmap()
[all …]
/external/skqp/gm/
Dstrokes.cpp387 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()
Dtextbloblooper.cpp28 static void add_to_text_blob(SkTextBlobBuilder* builder, const char* text, const SkPaint& origPaint, in add_to_text_blob() argument
30 SkPaint paint(origPaint); in add_to_text_blob()
Dimagefiltersbase.cpp265 void drawWaterfall(SkCanvas* canvas, const SkPaint& origPaint) { in drawWaterfall() argument
271 SkPaint paint(origPaint); in drawWaterfall()
/external/skqp/src/gpu/
DSkGpuDevice.cpp559 const SkPaint& origPaint) { in drawStrokedLine() argument
564 SkASSERT(SkPaint::kRound_Cap != origPaint.getStrokeCap()); in drawStrokedLine()
565 SkASSERT(SkPaint::kStroke_Style == origPaint.getStyle()); in drawStrokedLine()
566 SkASSERT(!origPaint.getPathEffect()); in drawStrokedLine()
567 SkASSERT(!origPaint.getMaskFilter()); in drawStrokedLine()
569 const SkScalar halfWidth = 0.5f * origPaint.getStrokeWidth(); in drawStrokedLine()
580 SkPaint newPaint(origPaint); in drawStrokedLine()
584 if (SkPaint::kButt_Cap != origPaint.getStrokeCap()) { in drawStrokedLine()
884 const SkPaint& origPaint, in drawTiledBitmap() argument
892 LogDrawScaleFactor(viewMatrix, origPaint.getFilterQuality()); in drawTiledBitmap()
[all …]
/external/skqp/tools/
Dsk_tool_utils.h122 const SkPaint& origPaint, SkScalar x, SkScalar y);
125 const SkPaint& origPaint, SkScalar x, SkScalar y);
Dsk_tool_utils.cpp183 const SkPaint& origPaint, SkScalar x, SkScalar y) { in add_to_text_blob_w_len() argument
184 SkPaint paint(origPaint); in add_to_text_blob_w_len()
197 const SkPaint& origPaint, SkScalar x, SkScalar y) { in add_to_text_blob() argument
198 add_to_text_blob_w_len(builder, text, strlen(text), origPaint, x, y); in add_to_text_blob()
/external/skia/tools/
Dsk_tool_utils.h125 const SkPaint& origPaint, SkScalar x, SkScalar y);
128 const SkPaint& origPaint, SkScalar x, SkScalar y);
Dsk_tool_utils.cpp123 const SkPaint& origPaint, SkScalar x, SkScalar y) { in add_to_text_blob_w_len() argument
124 SkPaint paint(origPaint); in add_to_text_blob_w_len()
137 const SkPaint& origPaint, SkScalar x, SkScalar y) { in add_to_text_blob() argument
138 add_to_text_blob_w_len(builder, text, strlen(text), origPaint, x, y); in add_to_text_blob()
/external/skia/gm/
Dstrokes.cpp387 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()
Dtextbloblooper.cpp28 static void add_to_text_blob(SkTextBlobBuilder* builder, const char* text, const SkPaint& origPaint, in add_to_text_blob() argument
30 SkPaint paint(origPaint); in add_to_text_blob()
Dimagefiltersbase.cpp265 void drawWaterfall(SkCanvas* canvas, const SkPaint& origPaint) { in drawWaterfall() argument
271 SkPaint paint(origPaint); in drawWaterfall()
/external/skia/src/gpu/text/
DGrAtlasTextContext.cpp447 const GrTextUtils::Paint& origPaint, in DrawBmpTextAsPaths() argument
457 SkPaint pathPaint(origPaint); in DrawBmpTextAsPaths()
478 fallbackTextHelper.drawText(blob, runIndex, glyphCache, props, origPaint, scalerContextFlags); in DrawBmpTextAsPaths()
484 const GrTextUtils::Paint& origPaint, in DrawBmpPosTextAsPaths() argument
498 SkPaint pathPaint(origPaint); in DrawBmpPosTextAsPaths()
500 FallbackTextHelper fallbackTextHelper(viewMatrix, origPaint, glyphCache, matrixScale); in DrawBmpPosTextAsPaths()
537 fallbackTextHelper.drawText(blob, runIndex, glyphCache, props, origPaint, scalerContextFlags); in DrawBmpPosTextAsPaths()
/external/skia/src/xps/
DSkXPSDevice.cpp1162 void SkXPSDevice::drawPaint(const SkPaint& origPaint) { in drawPaint() argument
1166 SkPaint* fillPaint = const_cast<SkPaint*>(&origPaint); in drawPaint()
1167 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPaint()
1500 const SkPaint& origPaint, in drawPath() argument
1503 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPath()
/external/skqp/src/xps/
DSkXPSDevice.cpp1162 void SkXPSDevice::drawPaint(const SkPaint& origPaint) { in drawPaint() argument
1166 SkPaint* fillPaint = const_cast<SkPaint*>(&origPaint); in drawPaint()
1167 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPaint()
1500 const SkPaint& origPaint, in drawPath() argument
1503 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in drawPath()
/external/skia/src/pdf/
DSkPDFDevice.cpp818 const SkPaint& origPaint, in internalDrawPathWithFilter() argument
820 SkASSERT(origPaint.getMaskFilter()); in internalDrawPathWithFilter()
822 SkTCopyOnFirstWrite<SkPaint> paint(origPaint); in internalDrawPathWithFilter()

12