• Home
  • Raw
  • Download

Lines Matching refs:paint

55 bool SkCanvas::wouldOverwriteEntireSurface(const SkRect* rect, const SkPaint* paint,  in wouldOverwriteEntireSurface()  argument
85 if (paint) { in wouldOverwriteEntireSurface()
86 SkPaint::Style paintStyle = paint->getStyle(); in wouldOverwriteEntireSurface()
91 if (paint->getMaskFilter() || paint->getLooper() in wouldOverwriteEntireSurface()
92 || paint->getPathEffect() || paint->getImageFilter()) { in wouldOverwriteEntireSurface()
96 return SkPaintPriv::Overwrites(paint, (SkPaintPriv::ShaderOverrideOpacity)overrideOpacity); in wouldOverwriteEntireSurface()
152 void SkCanvas::predrawNotify(const SkRect* rect, const SkPaint* paint, in predrawNotify() argument
161 if (this->wouldOverwriteEntireSurface(rect, paint, overrideOpacity)) { in predrawNotify()
200 DeviceCM(SkBaseDevice* device, const SkPaint* paint, SkCanvas* canvas, in DeviceCM()
211 fPaint = paint ? new SkPaint(*paint) : nullptr; in DeviceCM()
393 static SkColorFilter* image_to_color_filter(const SkPaint& paint) { in image_to_color_filter() argument
394 SkImageFilter* imgf = paint.getImageFilter(); in image_to_color_filter()
404 SkColorFilter* paintCF = paint.getColorFilter(); in image_to_color_filter()
426 static const SkRect& apply_paint_to_bounds_sans_imagefilter(const SkPaint& paint, in apply_paint_to_bounds_sans_imagefilter() argument
429 SkPaint tmpUnfiltered(paint); in apply_paint_to_bounds_sans_imagefilter()
443 AutoDrawLooper(SkCanvas* canvas, const SkSurfaceProps& props, const SkPaint& paint, in AutoDrawLooper() argument
445 const SkRect* rawBounds = nullptr) : fOrigPaint(paint) { in AutoDrawLooper()
459 SkPaint* paint = set_if_needed(&fLazyPaintInit, fOrigPaint); in AutoDrawLooper() local
460 paint->setColorFilter(simplifiedCF)->unref(); in AutoDrawLooper()
461 paint->setImageFilter(nullptr); in AutoDrawLooper()
462 fPaint = paint; in AutoDrawLooper()
495 if (SkDrawLooper* looper = paint.getLooper()) { in AutoDrawLooper()
506 uint32_t oldFlags = paint.getFlags(); in AutoDrawLooper()
509 SkPaint* paint = set_if_needed(&fLazyPaintInit, fOrigPaint); in AutoDrawLooper() local
510 paint->setFlags(fNewPaintFlags); in AutoDrawLooper()
511 fPaint = paint; in AutoDrawLooper()
523 const SkPaint& paint() const { in paint() function in AutoDrawLooper
562 SkPaint* paint = fLazyPaintPerLooper.set(fLazyPaintInit.isValid() ? in doNext() local
564 paint->setFlags(fNewPaintFlags); in doNext()
567 paint->setImageFilter(nullptr); in doNext()
568 paint->setXfermode(nullptr); in doNext()
571 if (fLooperContext && !fLooperContext->next(fCanvas, paint)) { in doNext()
576 if (!fFilter->filter(paint, drawType)) { in doNext()
585 fPaint = paint; in doNext()
602 #define LOOPER_BEGIN_DRAWBITMAP(paint, skipLayerForFilter, bounds) \ argument
604 AutoDrawLooper looper(this, fProps, paint, skipLayerForFilter, bounds); \
609 #define LOOPER_BEGIN_DRAWDEVICE(paint, type) \ argument
611 AutoDrawLooper looper(this, fProps, paint, true); \
615 #define LOOPER_BEGIN(paint, type, bounds) \ argument
617 AutoDrawLooper looper(this, fProps, paint, false, bounds); \
621 #define LOOPER_BEGIN_CHECK_COMPLETE_OVERWRITE(paint, type, bounds, auxOpaque) \ argument
622 this->predrawNotify(bounds, &paint, auxOpaque); \
623 AutoDrawLooper looper(this, fProps, paint, false, bounds); \
1117 int SkCanvas::saveLayer(const SkRect* bounds, const SkPaint* paint) { in saveLayer() argument
1118 return this->saveLayer(SaveLayerRec(bounds, paint, 0)); in saveLayer()
1121 int SkCanvas::saveLayerPreserveLCDTextRequests(const SkRect* bounds, const SkPaint* paint) { in saveLayerPreserveLCDTextRequests() argument
1122 return this->saveLayer(SaveLayerRec(bounds, paint, kPreserveLCDText_SaveLayerFlag)); in saveLayerPreserveLCDTextRequests()
1172 const SkPaint* paint) { in make_layer_info() argument
1175 const bool hasImageFilter = paint && paint->getImageFilter(); in make_layer_info()
1189 const SkPaint* paint = rec.fPaint; in internalSaveLayer() local
1203 …if (!this->clipRectBounds(bounds, saveLayerFlags, &ir, paint ? paint->getImageFilter() : nullptr))… in internalSaveLayer()
1215 if (paint) { in internalSaveLayer()
1217 if (paint->getImageFilter() || paint->getColorFilter()) { in internalSaveLayer()
1230 paint); in internalSaveLayer()
1239 SkBaseDevice* newDev = device->onCreateDevice(createInfo, paint); in internalSaveLayer()
1260 new DeviceCM(device, paint, this, fConservativeRasterClip, forceSpriteOnRestore); in internalSaveLayer()
1381 const SkPaint* paint, bool deviceIsBitmapDevice) { in internalDrawDevice() argument
1383 if (nullptr == paint) { in internalDrawDevice()
1384 paint = &tmp; in internalDrawDevice()
1387 LOOPER_BEGIN_DRAWDEVICE(*paint, SkDrawFilter::kBitmap_Type) in internalDrawDevice()
1390 paint = &looper.paint(); in internalDrawDevice()
1391 SkImageFilter* filter = paint->getImageFilter(); in internalDrawDevice()
1404 SkPaint tmpUnfiltered(*paint); in internalDrawDevice()
1411 dstDev->drawSprite(iter, src, pos.x(), pos.y(), *paint); in internalDrawDevice()
1413 dstDev->drawDevice(iter, srcDev, pos.x(), pos.y(), *paint); in internalDrawDevice()
1834 const SkPaint& paint) { in drawDRRect() argument
1840 this->drawRRect(outer, paint); in drawDRRect()
1851 this->onDrawDRRect(outer, inner, paint); in drawDRRect()
1856 void SkCanvas::drawPaint(const SkPaint& paint) { in drawPaint() argument
1857 this->onDrawPaint(paint); in drawPaint()
1860 void SkCanvas::drawRect(const SkRect& r, const SkPaint& paint) { in drawRect() argument
1861 this->onDrawRect(r, paint); in drawRect()
1864 void SkCanvas::drawOval(const SkRect& r, const SkPaint& paint) { in drawOval() argument
1865 this->onDrawOval(r, paint); in drawOval()
1868 void SkCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { in drawRRect() argument
1869 this->onDrawRRect(rrect, paint); in drawRRect()
1872 void SkCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint) { in drawPoints() argument
1873 this->onDrawPoints(mode, count, pts, paint); in drawPoints()
1878 const uint16_t indices[], int indexCount, const SkPaint& paint) { in drawVertices() argument
1880 indices, indexCount, paint); in drawVertices()
1883 void SkCanvas::drawPath(const SkPath& path, const SkPaint& paint) { in drawPath() argument
1884 this->onDrawPath(path, paint); in drawPath()
1887 void SkCanvas::drawImage(const SkImage* image, SkScalar x, SkScalar y, const SkPaint* paint) { in drawImage() argument
1889 this->onDrawImage(image, x, y, paint); in drawImage()
1893 const SkPaint* paint, SrcRectConstraint constraint) { in drawImageRect() argument
1898 this->onDrawImageRect(image, &src, dst, paint, constraint); in drawImageRect()
1902 const SkPaint* paint, SrcRectConstraint constraint) { in drawImageRect() argument
1904 this->drawImageRect(image, SkRect::Make(isrc), dst, paint, constraint); in drawImageRect()
1907 void SkCanvas::drawImageRect(const SkImage* image, const SkRect& dst, const SkPaint* paint, in drawImageRect() argument
1910 this->drawImageRect(image, SkRect::MakeIWH(image->width(), image->height()), dst, paint, in drawImageRect()
1915 const SkPaint* paint) { in drawImageNine() argument
1921 this->drawImageRect(image, dst, paint); in drawImageNine()
1923 this->onDrawImageNine(image, center, dst, paint); in drawImageNine()
1926 void SkCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar dx, SkScalar dy, const SkPaint* paint) { in drawBitmap() argument
1930 this->onDrawBitmap(bitmap, dx, dy, paint); in drawBitmap()
1934 const SkPaint* paint, SrcRectConstraint constraint) { in drawBitmapRect() argument
1938 this->onDrawBitmapRect(bitmap, &src, dst, paint, constraint); in drawBitmapRect()
1942 const SkPaint* paint, SrcRectConstraint constraint) { in drawBitmapRect() argument
1943 this->drawBitmapRect(bitmap, SkRect::Make(isrc), dst, paint, constraint); in drawBitmapRect()
1946 void SkCanvas::drawBitmapRect(const SkBitmap& bitmap, const SkRect& dst, const SkPaint* paint, in drawBitmapRect() argument
1948 this->drawBitmapRect(bitmap, SkRect::MakeIWH(bitmap.width(), bitmap.height()), dst, paint, in drawBitmapRect()
1953 const SkPaint* paint) { in drawBitmapNine() argument
1958 this->drawBitmapRect(bitmap, dst, paint); in drawBitmapNine()
1960 this->onDrawBitmapNine(bitmap, center, dst, paint); in drawBitmapNine()
1965 const SkRect* cull, const SkPaint* paint) { in drawAtlas() argument
1973 this->onDrawAtlas(atlas, xform, tex, colors, count, mode, cull, paint); in drawAtlas()
1977 const SkPaint* paint, SrcRectConstraint constraint) { in legacy_drawImageRect() argument
1979 this->drawImageRect(image, *src, dst, paint, constraint); in legacy_drawImageRect()
1982 dst, paint, constraint); in legacy_drawImageRect()
1986 const SkPaint* paint, SrcRectConstraint constraint) { in legacy_drawBitmapRect() argument
1988 this->drawBitmapRect(bitmap, *src, dst, paint, constraint); in legacy_drawBitmapRect()
1991 dst, paint, constraint); in legacy_drawBitmapRect()
2005 void SkCanvas::onDrawPaint(const SkPaint& paint) { in onDrawPaint() argument
2007 this->internalDrawPaint(paint); in onDrawPaint()
2010 void SkCanvas::internalDrawPaint(const SkPaint& paint) { in internalDrawPaint() argument
2011 LOOPER_BEGIN_CHECK_COMPLETE_OVERWRITE(paint, SkDrawFilter::kPaint_Type, nullptr, false) in internalDrawPaint()
2014 iter.fDevice->drawPaint(iter, looper.paint()); in internalDrawPaint()
2021 const SkPaint& paint) { in onDrawPoints() argument
2029 if (paint.canComputeFastBounds()) { in onDrawPoints()
2036 if (this->quickReject(paint.computeFastStrokeBounds(r, &storage))) { in onDrawPoints()
2044 LOOPER_BEGIN(paint, SkDrawFilter::kPoint_Type, bounds) in onDrawPoints()
2047 iter.fDevice->drawPoints(iter, mode, count, pts, looper.paint()); in onDrawPoints()
2053 void SkCanvas::onDrawRect(const SkRect& r, const SkPaint& paint) { in onDrawRect() argument
2057 if (paint.canComputeFastBounds()) { in onDrawRect()
2063 if (this->quickReject(paint.computeFastBounds(tmp, &storage))) { in onDrawRect()
2069 LOOPER_BEGIN_CHECK_COMPLETE_OVERWRITE(paint, SkDrawFilter::kRect_Type, bounds, false) in onDrawRect()
2072 iter.fDevice->drawRect(iter, r, looper.paint()); in onDrawRect()
2078 void SkCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) { in onDrawOval() argument
2082 if (paint.canComputeFastBounds()) { in onDrawOval()
2083 if (this->quickReject(paint.computeFastBounds(oval, &storage))) { in onDrawOval()
2089 LOOPER_BEGIN(paint, SkDrawFilter::kOval_Type, bounds) in onDrawOval()
2092 iter.fDevice->drawOval(iter, oval, looper.paint()); in onDrawOval()
2098 void SkCanvas::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { in onDrawRRect() argument
2102 if (paint.canComputeFastBounds()) { in onDrawRRect()
2103 if (this->quickReject(paint.computeFastBounds(rrect.getBounds(), &storage))) { in onDrawRRect()
2111 this->SkCanvas::drawRect(rrect.getBounds(), paint); in onDrawRRect()
2115 this->SkCanvas::drawOval(rrect.getBounds(), paint); in onDrawRRect()
2119 LOOPER_BEGIN(paint, SkDrawFilter::kRRect_Type, bounds) in onDrawRRect()
2122 iter.fDevice->drawRRect(iter, rrect, looper.paint()); in onDrawRRect()
2129 const SkPaint& paint) { in onDrawDRRect() argument
2132 if (paint.canComputeFastBounds()) { in onDrawDRRect()
2133 if (this->quickReject(paint.computeFastBounds(outer.getBounds(), &storage))) { in onDrawDRRect()
2139 LOOPER_BEGIN(paint, SkDrawFilter::kRRect_Type, bounds) in onDrawDRRect()
2142 iter.fDevice->drawDRRect(iter, outer, inner, looper.paint()); in onDrawDRRect()
2148 void SkCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { in onDrawPath() argument
2156 if (!path.isInverseFillType() && paint.canComputeFastBounds()) { in onDrawPath()
2158 if (this->quickReject(paint.computeFastBounds(pathBounds, &storage))) { in onDrawPath()
2167 this->internalDrawPaint(paint); in onDrawPath()
2172 LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type, bounds) in onDrawPath()
2175 iter.fDevice->drawPath(iter, path, looper.paint()); in onDrawPath()
2181 bool SkCanvas::canDrawBitmapAsSprite(SkScalar x, SkScalar y, int w, int h, const SkPaint& paint) { in canDrawBitmapAsSprite() argument
2182 if (!paint.getImageFilter()) { in canDrawBitmapAsSprite()
2187 if (!SkTreatAsSprite(ctm, SkISize::Make(w, h), paint)) { in canDrawBitmapAsSprite()
2202 void SkCanvas::onDrawImage(const SkImage* image, SkScalar x, SkScalar y, const SkPaint* paint) { in onDrawImage() argument
2206 if (nullptr == paint || paint->canComputeFastBounds()) { in onDrawImage()
2208 if (paint) { in onDrawImage()
2209 paint->computeFastBounds(tmp, &tmp); in onDrawImage()
2217 if (nullptr == paint) { in onDrawImage()
2218 paint = lazy.init(); in onDrawImage()
2222 *paint); in onDrawImage()
2223 if (drawAsSprite && paint->getImageFilter()) { in onDrawImage()
2235 LOOPER_BEGIN_DRAWBITMAP(*paint, drawAsSprite, &bounds) in onDrawImage()
2238 const SkPaint& pnt = looper.paint(); in onDrawImage()
2257 const SkPaint* paint, SrcRectConstraint constraint) { in onDrawImageRect() argument
2259 if (nullptr == paint || paint->canComputeFastBounds()) { in onDrawImageRect()
2261 if (paint) { in onDrawImageRect()
2262 paint->computeFastBounds(dst, &storage); in onDrawImageRect()
2269 if (nullptr == paint) { in onDrawImageRect()
2270 paint = lazy.init(); in onDrawImageRect()
2273 LOOPER_BEGIN_CHECK_COMPLETE_OVERWRITE(*paint, SkDrawFilter::kBitmap_Type, &dst, in onDrawImageRect()
2277 iter.fDevice->drawImageRect(iter, image, src, dst, looper.paint(), constraint); in onDrawImageRect()
2283 void SkCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, const SkPaint* paint) { in onDrawBitmap() argument
2292 if (nullptr == paint) { in onDrawBitmap()
2293 paint = lazy.init(); in onDrawBitmap()
2300 if (paint->canComputeFastBounds()) { in onDrawBitmap()
2304 if (this->quickReject(paint->computeFastBounds(tmp, &tmp))) { in onDrawBitmap()
2311 *paint); in onDrawBitmap()
2312 if (drawAsSprite && paint->getImageFilter()) { in onDrawBitmap()
2319 LOOPER_BEGIN_DRAWBITMAP(*paint, drawAsSprite, bounds) in onDrawBitmap()
2322 const SkPaint& pnt = looper.paint(); in onDrawBitmap()
2330 iter.fDevice->drawBitmap(iter, bitmap, matrix, looper.paint()); in onDrawBitmap()
2339 const SkRect& dst, const SkPaint* paint, in internalDrawBitmapRect() argument
2345 if (nullptr == paint || paint->canComputeFastBounds()) { in internalDrawBitmapRect()
2347 if (this->quickReject(paint ? paint->computeFastBounds(dst, &storage) : dst)) { in internalDrawBitmapRect()
2353 if (nullptr == paint) { in internalDrawBitmapRect()
2354 paint = lazy.init(); in internalDrawBitmapRect()
2357 LOOPER_BEGIN_CHECK_COMPLETE_OVERWRITE(*paint, SkDrawFilter::kBitmap_Type, &dst, in internalDrawBitmapRect()
2361 iter.fDevice->drawBitmapRect(iter, bitmap, src, dst, looper.paint(), constraint); in internalDrawBitmapRect()
2368 const SkPaint* paint, SrcRectConstraint constraint) { in onDrawBitmapRect() argument
2371 this->internalDrawBitmapRect(bitmap, src, dst, paint, constraint); in onDrawBitmapRect()
2375 const SkPaint* paint) { in onDrawImageNine() argument
2378 if (nullptr == paint || paint->canComputeFastBounds()) { in onDrawImageNine()
2380 if (this->quickReject(paint ? paint->computeFastBounds(dst, &storage) : dst)) { in onDrawImageNine()
2386 if (nullptr == paint) { in onDrawImageNine()
2387 paint = lazy.init(); in onDrawImageNine()
2390 LOOPER_BEGIN(*paint, SkDrawFilter::kBitmap_Type, &dst) in onDrawImageNine()
2393 iter.fDevice->drawImageNine(iter, image, center, dst, looper.paint()); in onDrawImageNine()
2400 const SkPaint* paint) { in onDrawBitmapNine() argument
2404 if (nullptr == paint || paint->canComputeFastBounds()) { in onDrawBitmapNine()
2406 if (this->quickReject(paint ? paint->computeFastBounds(dst, &storage) : dst)) { in onDrawBitmapNine()
2412 if (nullptr == paint) { in onDrawBitmapNine()
2413 paint = lazy.init(); in onDrawBitmapNine()
2416 LOOPER_BEGIN(*paint, SkDrawFilter::kBitmap_Type, &dst) in onDrawBitmapNine()
2419 iter.fDevice->drawBitmapNine(iter, bitmap, center, dst, looper.paint()); in onDrawBitmapNine()
2427 SkDeviceFilteredPaint(SkBaseDevice* device, const SkPaint& paint) { in SkDeviceFilteredPaint() argument
2428 uint32_t filteredFlags = device->filterTextFlags(paint); in SkDeviceFilteredPaint()
2429 if (filteredFlags != paint.getFlags()) { in SkDeviceFilteredPaint()
2430 SkPaint* newPaint = fLazy.set(paint); in SkDeviceFilteredPaint()
2434 fPaint = &paint; in SkDeviceFilteredPaint()
2438 const SkPaint& paint() const { return *fPaint; } in paint() function in SkDeviceFilteredPaint
2445 void SkCanvas::DrawRect(const SkDraw& draw, const SkPaint& paint, in DrawRect() argument
2447 if (paint.getStyle() == SkPaint::kFill_Style) { in DrawRect()
2448 draw.fDevice->drawRect(draw, r, paint); in DrawRect()
2450 SkPaint p(paint); in DrawRect()
2451 p.setStrokeWidth(SkScalarMul(textSize, paint.getStrokeWidth())); in DrawRect()
2456 void SkCanvas::DrawTextDecorations(const SkDraw& draw, const SkPaint& paint, in DrawTextDecorations() argument
2464 (paint.getAlpha() == 0 && paint.getXfermode() == nullptr)) { in DrawTextDecorations()
2472 if (paint.getFlags() & (SkPaint::kUnderlineText_Flag | in DrawTextDecorations()
2474 width = paint.measureText(text, byteLength); in DrawTextDecorations()
2477 if (paint.getTextAlign() == SkPaint::kCenter_Align) { in DrawTextDecorations()
2479 } else if (paint.getTextAlign() == SkPaint::kRight_Align) { in DrawTextDecorations()
2489 uint32_t flags = paint.getFlags(); in DrawTextDecorations()
2493 SkScalar textSize = paint.getTextSize(); in DrawTextDecorations()
2505 DrawRect(draw, paint, r, 1); in DrawTextDecorations()
2512 DrawRect(draw, paint, r, 1); in DrawTextDecorations()
2518 const SkPaint& paint) { in onDrawText() argument
2519 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type, nullptr) in onDrawText()
2522 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); in onDrawText()
2523 iter.fDevice->drawText(iter, text, byteLength, x, y, dfp.paint()); in onDrawText()
2524 DrawTextDecorations(iter, dfp.paint(), in onDrawText()
2532 const SkPaint& paint) { in onDrawPosText() argument
2535 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type, nullptr) in onDrawPosText()
2538 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); in onDrawPosText()
2540 dfp.paint()); in onDrawPosText()
2547 SkScalar constY, const SkPaint& paint) { in onDrawPosTextH() argument
2551 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type, nullptr) in onDrawPosTextH()
2554 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); in onDrawPosTextH()
2556 dfp.paint()); in onDrawPosTextH()
2563 const SkMatrix* matrix, const SkPaint& paint) { in onDrawTextOnPath() argument
2564 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type, nullptr) in onDrawTextOnPath()
2568 matrix, looper.paint()); in onDrawTextOnPath()
2575 const SkPaint& paint) { in onDrawTextBlob() argument
2579 if (paint.canComputeFastBounds()) { in onDrawTextBlob()
2582 if (this->quickReject(paint.computeFastBounds(storage, &tmp))) { in onDrawTextBlob()
2593 LOOPER_BEGIN(paint, SkDrawFilter::kText_Type, bounds) in onDrawTextBlob()
2596 SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); in onDrawTextBlob()
2597 iter.fDevice->drawTextBlob(iter, blob, x, y, dfp.paint(), drawFilter); in onDrawTextBlob()
2607 const SkPaint& paint) { in drawText() argument
2609 this->onDrawText(text, byteLength, x, y, paint); in drawText()
2612 const SkPaint& paint) { in drawPosText() argument
2614 this->onDrawPosText(text, byteLength, pos, paint); in drawPosText()
2617 SkScalar constY, const SkPaint& paint) { in drawPosTextH() argument
2619 this->onDrawPosTextH(text, byteLength, xpos, constY, paint); in drawPosTextH()
2622 const SkMatrix* matrix, const SkPaint& paint) { in drawTextOnPath() argument
2624 this->onDrawTextOnPath(text, byteLength, path, matrix, paint); in drawTextOnPath()
2627 const SkPaint& paint) { in drawTextBlob() argument
2630 this->onDrawTextBlob(blob, x, y, paint); in drawTextBlob()
2637 const SkPaint& paint) { in onDrawVertices() argument
2639 LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type, nullptr) in onDrawVertices()
2644 looper.paint()); in onDrawVertices()
2651 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint) { in drawPatch() argument
2665 this->onDrawPatch(cubics, colors, texCoords, xmode, paint); in drawPatch()
2669 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint) { in onDrawPatch() argument
2671 LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type, nullptr) in onDrawPatch()
2674 iter.fDevice->drawPatch(iter, cubics, colors, texCoords, xmode, paint); in onDrawPatch()
2711 const SkRect* cull, const SkPaint* paint) { in onDrawAtlas() argument
2717 if (paint) { in onDrawAtlas()
2718 pnt = *paint; in onDrawAtlas()
2736 SkPaint paint; in drawARGB() local
2738 paint.setARGB(a, r, g, b); in drawARGB()
2740 paint.setXfermodeMode(mode); in drawARGB()
2742 this->drawPaint(paint); in drawARGB()
2747 SkPaint paint; in drawColor() local
2749 paint.setColor(c); in drawColor()
2751 paint.setXfermodeMode(mode); in drawColor()
2753 this->drawPaint(paint); in drawColor()
2756 void SkCanvas::drawPoint(SkScalar x, SkScalar y, const SkPaint& paint) { in drawPoint() argument
2761 this->drawPoints(kPoints_PointMode, 1, &pt, paint); in drawPoint()
2767 SkPaint paint; in drawPoint() local
2770 paint.setColor(color); in drawPoint()
2771 this->drawPoints(kPoints_PointMode, 1, &pt, paint); in drawPoint()
2775 const SkPaint& paint) { in drawLine() argument
2781 this->drawPoints(kLines_PointMode, 2, pts, paint); in drawLine()
2786 const SkPaint& paint) { in drawRectCoords() argument
2791 this->drawRect(r, paint); in drawRectCoords()
2795 const SkPaint& paint) { in drawCircle() argument
2803 this->drawOval(r, paint); in drawCircle()
2807 const SkPaint& paint) { in drawRoundRect() argument
2810 if (paint.canComputeFastBounds()) { in drawRoundRect()
2812 if (this->quickReject(paint.computeFastBounds(r, &storage))) { in drawRoundRect()
2818 this->drawRRect(rrect, paint); in drawRoundRect()
2820 this->drawRect(r, paint); in drawRoundRect()
2826 const SkPaint& paint) { in drawArc() argument
2829 this->drawOval(oval, paint); in drawArc()
2839 this->drawPath(path, paint); in drawArc()
2845 SkScalar vOffset, const SkPaint& paint) { in drawTextOnPathHV() argument
2850 this->drawTextOnPath(text, byteLength, path, &matrix, paint); in drawTextOnPathHV()
2864 void SkCanvas::drawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint) { in drawPicture() argument
2872 SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect()); in drawPicture()
2875 this->onDrawPicture(picture, matrix, paint); in drawPicture()
2880 const SkPaint* paint) { in onDrawPicture() argument
2881 if (!paint || paint->canComputeFastBounds()) { in onDrawPicture()
2883 if (paint) { in onDrawPicture()
2884 paint->computeFastBounds(bounds, &bounds); in onDrawPicture()
2898 if (device->EXPERIMENTAL_drawPicture(this, picture, matrix, paint)) { in onDrawPicture()
2903 SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect()); in onDrawPicture()
2935 const SkPaint& SkCanvas::LayerIter::paint() const { in paint() function in SkCanvas::LayerIter
2936 const SkPaint* paint = fImpl->getPaint(); in paint() local
2937 if (nullptr == paint) { in paint()
2938 paint = &fDefaultPaint; in paint()
2940 return *paint; in paint()
2989 const SkPaint* paint, const SkRect& bounds) in SkAutoCanvasMatrixPaint() argument
2993 if (paint) { in SkAutoCanvasMatrixPaint()
2998 canvas->saveLayer(&newBounds, paint); in SkAutoCanvasMatrixPaint()