Lines Matching refs:SkCanvas
67 bool SkCanvas::wouldOverwriteEntireSurface(const SkRect* rect, const SkPaint* paint, in wouldOverwriteEntireSurface()
148 void SkCanvas::predrawNotify(bool willOverwritesEntireSurface) { in predrawNotify()
156 void SkCanvas::predrawNotify(const SkRect* rect, const SkPaint* paint, in predrawNotify()
224 class SkCanvas::MCRec {
273 SkDrawIter(SkCanvas* canvas) in SkDrawIter()
372 AutoDrawLooper(SkCanvas* canvas, const SkPaint& paint, bool skipLayerForImageFilter = false, in AutoDrawLooper()
412 (void)canvas->internalSaveLayer(SkCanvas::SaveLayerRec(rawBounds, &tmp), in AutoDrawLooper()
413 SkCanvas::kFullLayer_SaveLayerStrategy); in AutoDrawLooper()
455 SkCanvas* fCanvas;
539 void SkCanvas::resetForNextPicture(const SkIRect& bounds) { in resetForNextPicture()
550 void SkCanvas::init(sk_sp<SkBaseDevice> device) { in init()
579 SkCanvas::SkCanvas() in SkCanvas() function in SkCanvas
588 SkCanvas::SkCanvas(int width, int height, const SkSurfaceProps* props) in SkCanvas() function in SkCanvas
597 SkCanvas::SkCanvas(const SkIRect& bounds) in SkCanvas() function in SkCanvas
607 SkCanvas::SkCanvas(sk_sp<SkBaseDevice> device) in SkCanvas() function in SkCanvas
616 SkCanvas::SkCanvas(const SkBitmap& bitmap, const SkSurfaceProps& props) in SkCanvas() function in SkCanvas
626 SkCanvas::SkCanvas(const SkBitmap& bitmap, std::unique_ptr<SkRasterHandleAllocator> alloc, in SkCanvas() function in SkCanvas
638 SkCanvas::SkCanvas(const SkBitmap& bitmap) : SkCanvas(bitmap, nullptr, nullptr) {} in SkCanvas() function in SkCanvas
641 SkCanvas::SkCanvas(const SkBitmap& bitmap, ColorBehavior) in SkCanvas() function in SkCanvas
655 SkCanvas::~SkCanvas() { in ~SkCanvas()
666 void SkCanvas::flush() { in flush()
670 void SkCanvas::onFlush() { in onFlush()
677 SkISize SkCanvas::getBaseLayerSize() const { in getBaseLayerSize()
682 SkIRect SkCanvas::getTopLayerBounds() const { in getTopLayerBounds()
690 SkBaseDevice* SkCanvas::getDevice() const { in getDevice()
697 SkBaseDevice* SkCanvas::getTopDevice() const { in getTopDevice()
701 bool SkCanvas::readPixels(const SkPixmap& pm, int x, int y) { in readPixels()
706 bool SkCanvas::readPixels(const SkImageInfo& dstInfo, void* dstP, size_t rowBytes, int x, int y) { in readPixels()
710 bool SkCanvas::readPixels(const SkBitmap& bm, int x, int y) { in readPixels()
715 bool SkCanvas::writePixels(const SkBitmap& bitmap, int x, int y) { in writePixels()
723 bool SkCanvas::writePixels(const SkImageInfo& srcInfo, const void* pixels, size_t rowBytes, in writePixels()
751 void SkCanvas::checkForDeferredSave() { in checkForDeferredSave()
757 int SkCanvas::getSaveCount() const { in getSaveCount()
773 int SkCanvas::save() { in save()
779 void SkCanvas::doSave() { in doSave()
787 void SkCanvas::restore() { in restore()
804 void SkCanvas::restoreToCount(int count) { in restoreToCount()
816 void SkCanvas::internalSave() { in internalSave()
824 bool SkCanvas::BoundsAffectsClip(SaveLayerFlags saveLayerFlags) { in BoundsAffectsClip()
828 bool SkCanvas::clipRectBounds(const SkRect* bounds, SaveLayerFlags saveLayerFlags, in clipRectBounds()
895 int SkCanvas::saveLayer(const SkRect* bounds, const SkPaint* paint) { in saveLayer()
899 int SkCanvas::saveLayer(const SaveLayerRec& rec) { in saveLayer()
913 int SkCanvas::only_axis_aligned_saveBehind(const SkRect* bounds) { in only_axis_aligned_saveBehind()
929 void SkCanvas::DrawDeviceWithFilter(SkBaseDevice* src, const SkImageFilter* filter, in DrawDeviceWithFilter()
978 void SkCanvas::internalSaveLayer(const SaveLayerRec& rec, SaveLayerStrategy strategy) { in internalSaveLayer()
1103 int SkCanvas::saveLayerAlpha(const SkRect* bounds, U8CPU alpha) { in saveLayerAlpha()
1113 void SkCanvas::internalSaveBehind(const SkRect* localBounds) { in internalSaveBehind()
1151 void SkCanvas::internalRestore() { in internalRestore()
1209 sk_sp<SkSurface> SkCanvas::makeSurface(const SkImageInfo& info, const SkSurfaceProps* props) { in makeSurface()
1216 sk_sp<SkSurface> SkCanvas::onNewSurface(const SkImageInfo& info, const SkSurfaceProps& props) { in onNewSurface()
1221 SkImageInfo SkCanvas::imageInfo() const { in imageInfo()
1225 SkImageInfo SkCanvas::onImageInfo() const { in onImageInfo()
1234 bool SkCanvas::getProps(SkSurfaceProps* props) const { in getProps()
1238 bool SkCanvas::onGetProps(SkSurfaceProps* props) const { in onGetProps()
1250 bool SkCanvas::peekPixels(SkPixmap* pmap) { in peekPixels()
1254 bool SkCanvas::onPeekPixels(SkPixmap* pmap) { in onPeekPixels()
1259 void* SkCanvas::accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin) { in accessTopLayerPixels()
1276 bool SkCanvas::onAccessTopLayerPixels(SkPixmap* pmap) { in onAccessTopLayerPixels()
1283 void SkCanvas::internalDrawDevice(SkBaseDevice* srcDev, int x, int y, const SkPaint* paint, in internalDrawDevice()
1313 void SkCanvas::translate(SkScalar dx, SkScalar dy) { in translate()
1327 void SkCanvas::scale(SkScalar sx, SkScalar sy) { in scale()
1333 void SkCanvas::rotate(SkScalar degrees) { in rotate()
1339 void SkCanvas::rotate(SkScalar degrees, SkScalar px, SkScalar py) { in rotate()
1345 void SkCanvas::skew(SkScalar sx, SkScalar sy) { in skew()
1351 void SkCanvas::concat(const SkMatrix& matrix) { in concat()
1365 void SkCanvas::internalSetMatrix(const SkMatrix& matrix) { in internalSetMatrix()
1372 void SkCanvas::setMatrix(const SkMatrix& matrix) { in setMatrix()
1378 void SkCanvas::resetMatrix() { in resetMatrix()
1384 void SkCanvas::clipRect(const SkRect& rect, SkClipOp op, bool doAA) { in clipRect()
1393 void SkCanvas::onClipRect(const SkRect& rect, SkClipOp op, ClipEdgeStyle edgeStyle) { in onClipRect()
1404 void SkCanvas::androidFramework_setDeviceClipRestriction(const SkIRect& rect) { in androidFramework_setDeviceClipRestriction()
1419 void SkCanvas::clipRRect(const SkRRect& rrect, SkClipOp op, bool doAA) { in clipRRect()
1429 void SkCanvas::onClipRRect(const SkRRect& rrect, SkClipOp op, ClipEdgeStyle edgeStyle) { in onClipRRect()
1441 void SkCanvas::clipPath(const SkPath& path, SkClipOp op, bool doAA) { in clipPath()
1466 void SkCanvas::onClipPath(const SkPath& path, SkClipOp op, ClipEdgeStyle edgeStyle) { in onClipPath()
1480 void SkCanvas::clipRegion(const SkRegion& rgn, SkClipOp op) { in clipRegion()
1485 void SkCanvas::onClipRegion(const SkRegion& rgn, SkClipOp op) { in onClipRegion()
1495 void SkCanvas::validateClip() const { in validateClip()
1505 bool SkCanvas::androidFramework_isClipAA() const { in androidFramework_isClipAA()
1526 void SkCanvas::temporary_internal_getRgnClip(SkRegion* rgn) { in temporary_internal_getRgnClip()
1536 bool SkCanvas::isClipEmpty() const { in isClipEmpty()
1547 bool SkCanvas::isClipRect() const { in isClipRect()
1582 bool SkCanvas::quickReject(const SkRect& src) const { in quickReject()
1623 bool SkCanvas::quickReject(const SkPath& path) const { in quickReject()
1627 SkRect SkCanvas::getLocalClipBounds() const { in getLocalClipBounds()
1648 SkIRect SkCanvas::getDeviceClipBounds() const { in getDeviceClipBounds()
1652 const SkMatrix& SkCanvas::getTotalMatrix() const { in getTotalMatrix()
1656 GrRenderTargetContext* SkCanvas::internal_private_accessTopLayerRenderTargetContext() { in internal_private_accessTopLayerRenderTargetContext()
1661 GrContext* SkCanvas::getGrContext() { in getGrContext()
1666 void SkCanvas::drawDRRect(const SkRRect& outer, const SkRRect& inner, in drawDRRect()
1689 void SkCanvas::drawPaint(const SkPaint& paint) { in drawPaint()
1694 void SkCanvas::drawRect(const SkRect& r, const SkPaint& paint) { in drawRect()
1701 void SkCanvas::drawClippedToSaveBehind(const SkPaint& paint) { in drawClippedToSaveBehind()
1706 void SkCanvas::drawRegion(const SkRegion& region, const SkPaint& paint) { in drawRegion()
1719 void SkCanvas::drawOval(const SkRect& r, const SkPaint& paint) { in drawOval()
1726 void SkCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { in drawRRect()
1731 void SkCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint) { in drawPoints()
1736 void SkCanvas::drawVertices(const sk_sp<SkVertices>& vertices, SkBlendMode mode, in drawVertices()
1745 void SkCanvas::drawVertices(const SkVertices* vertices, SkBlendMode mode, const SkPaint& paint) { in drawVertices()
1751 void SkCanvas::drawVertices(const sk_sp<SkVertices>& vertices, const SkVertices::Bone bones[], in drawVertices()
1759 void SkCanvas::drawVertices(const SkVertices* vertices, const SkVertices::Bone bones[], in drawVertices()
1767 void SkCanvas::drawPath(const SkPath& path, const SkPaint& paint) { in drawPath()
1772 void SkCanvas::drawImage(const SkImage* image, SkScalar x, SkScalar y, const SkPaint* paint) { in drawImage()
1785 void SkCanvas::drawImageRect(const SkImage* image, const SkRect& src, const SkRect& dst, in drawImageRect()
1795 void SkCanvas::drawImageRect(const SkImage* image, const SkIRect& isrc, const SkRect& dst, in drawImageRect()
1801 void SkCanvas::drawImageRect(const SkImage* image, const SkRect& dst, const SkPaint* paint) { in drawImageRect()
1834 void SkCanvas::drawImageNine(const SkImage* image, const SkIRect& center, const SkRect& dst, in drawImageNine()
1849 void SkCanvas::drawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst, in drawImageLattice()
1872 void SkCanvas::experimental_DrawImageSetV1(const ImageSetEntry imageSet[], int cnt, in experimental_DrawImageSetV1()
1881 void SkCanvas::experimental_DrawEdgeAARectV1(const SkRect& r, QuadAAFlags edgeAA, SkColor color, in experimental_DrawEdgeAARectV1()
1889 void SkCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar dx, SkScalar dy, const SkPaint* paint) { in drawBitmap()
1897 void SkCanvas::drawBitmapRect(const SkBitmap& bitmap, const SkRect& src, const SkRect& dst, in drawBitmapRect()
1906 void SkCanvas::drawBitmapRect(const SkBitmap& bitmap, const SkIRect& isrc, const SkRect& dst, in drawBitmapRect()
1911 void SkCanvas::drawBitmapRect(const SkBitmap& bitmap, const SkRect& dst, const SkPaint* paint, in drawBitmapRect()
1917 void SkCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, const SkRect& dst, in drawBitmapNine()
1931 void SkCanvas::drawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, const SkRect& dst, in drawBitmapLattice()
1953 void SkCanvas::drawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect tex[], in drawAtlas()
1966 void SkCanvas::drawAnnotation(const SkRect& rect, const char key[], SkData* value) { in drawAnnotation()
1973 void SkCanvas::legacy_drawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst, in legacy_drawImageRect()
1982 void SkCanvas::legacy_drawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, in legacy_drawBitmapRect()
1992 void SkCanvas::private_draw_shadow_rec(const SkPath& path, const SkDrawShadowRec& rec) { in private_draw_shadow_rec()
1997 void SkCanvas::onDrawShadowRec(const SkPath& path, const SkDrawShadowRec& rec) { in onDrawShadowRec()
2012 void SkCanvas::onDiscard() { in onDiscard()
2018 void SkCanvas::onDrawPaint(const SkPaint& paint) { in onDrawPaint()
2022 void SkCanvas::internalDrawPaint(const SkPaint& paint) { in internalDrawPaint()
2032 void SkCanvas::onDrawPoints(PointMode mode, size_t count, const SkPoint pts[], in onDrawPoints()
2068 static bool needs_autodrawlooper(SkCanvas* canvas, const SkPaint& paint) { in needs_autodrawlooper()
2073 void SkCanvas::onDrawRect(const SkRect& r, const SkPaint& paint) { in onDrawRect()
2099 void SkCanvas::onDrawEdgeAARect(const SkRect& r, QuadAAFlags edgeAA, SkColor color, in onDrawEdgeAARect()
2113 void SkCanvas::onDrawRegion(const SkRegion& region, const SkPaint& paint) { in onDrawRegion()
2131 void SkCanvas::onDrawBehind(const SkPaint& paint) { in onDrawBehind()
2165 void SkCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) { in onDrawOval()
2183 void SkCanvas::onDrawArc(const SkRect& oval, SkScalar startAngle, in onDrawArc()
2204 void SkCanvas::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { in onDrawRRect()
2214 this->SkCanvas::drawRect(rrect.getBounds(), paint); in onDrawRRect()
2218 this->SkCanvas::drawOval(rrect.getBounds(), paint); in onDrawRRect()
2231 void SkCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint) { in onDrawDRRect()
2248 void SkCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { in onDrawPath()
2277 bool SkCanvas::canDrawBitmapAsSprite(SkScalar x, SkScalar y, int w, int h, const SkPaint& paint) { in canDrawBitmapAsSprite()
2311 void SkCanvas::onDrawImage(const SkImage* image, SkScalar x, SkScalar y, const SkPaint* paint) { in onDrawImage()
2362 void SkCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst, in onDrawImageRect()
2387 void SkCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, const SkPaint* paint) { in onDrawBitmap()
2441 void SkCanvas::internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, in internalDrawBitmapRect()
2469 void SkCanvas::onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, in onDrawBitmapRect()
2475 void SkCanvas::onDrawImageNine(const SkImage* image, const SkIRect& center, const SkRect& dst, in onDrawImageNine()
2497 void SkCanvas::onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, const SkRect& dst, in onDrawBitmapNine()
2520 void SkCanvas::onDrawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice()
2542 void SkCanvas::onDrawImageSet(const ImageSetEntry imageSet[], int count, in onDrawImageSet()
2552 void SkCanvas::onDrawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, in onDrawBitmapLattice()
2574 void SkCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, in onDrawTextBlob()
2599 void SkCanvas::drawSimpleText(const void* text, size_t byteLength, SkTextEncoding encoding, in drawSimpleText()
2608 void SkCanvas::drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, in drawTextBlob()
2616 void SkCanvas::onDrawVerticesObject(const SkVertices* vertices, const SkVertices::Bone bones[], in onDrawVerticesObject()
2628 void SkCanvas::drawPatch(const SkPoint cubics[12], const SkColor colors[4], in drawPatch()
2639 void SkCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
2659 void SkCanvas::drawDrawable(SkDrawable* dr, SkScalar x, SkScalar y) { in drawDrawable()
2672 void SkCanvas::drawDrawable(SkDrawable* dr, const SkMatrix* matrix) { in drawDrawable()
2683 void SkCanvas::onDrawDrawable(SkDrawable* dr, const SkMatrix* matrix) { in onDrawDrawable()
2689 void SkCanvas::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect tex[], in onDrawAtlas()
2708 void SkCanvas::onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) { in onDrawAnnotation()
2724 void SkCanvas::drawColor(SkColor c, SkBlendMode mode) { in drawColor()
2731 void SkCanvas::drawPoint(SkScalar x, SkScalar y, const SkPaint& paint) { in drawPoint()
2736 void SkCanvas::drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint& paint) { in drawLine()
2743 void SkCanvas::drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint& paint) { in drawCircle()
2753 void SkCanvas::drawRoundRect(const SkRect& r, SkScalar rx, SkScalar ry, in drawRoundRect()
2764 void SkCanvas::drawArc(const SkRect& oval, SkScalar startAngle, in drawArc()
2776 void SkCanvas::drawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint) … in drawPicture()
2779 void SkCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, in onDrawPicture()
2791 void SkCanvas::drawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint) { in drawPicture()
2806 void SkCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, in onDrawPicture()
2829 SkCanvas::LayerIter::LayerIter(SkCanvas* canvas) { in LayerIter()
2838 SkCanvas::LayerIter::~LayerIter() { in ~LayerIter()
2842 void SkCanvas::LayerIter::next() { in next()
2846 SkBaseDevice* SkCanvas::LayerIter::device() const { in device()
2850 const SkMatrix& SkCanvas::LayerIter::matrix() const { in matrix()
2854 const SkPaint& SkCanvas::LayerIter::paint() const { in paint()
2862 SkIRect SkCanvas::LayerIter::clipBounds() const { in clipBounds()
2866 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } in x()
2867 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } in y()
2871 std::unique_ptr<SkCanvas> SkCanvas::MakeRasterDirect(const SkImageInfo& info, void* pixels, in MakeRasterDirect()
2883 skstd::make_unique<SkCanvas>(bitmap, *props) : in MakeRasterDirect()
2884 skstd::make_unique<SkCanvas>(bitmap); in MakeRasterDirect()
2898 SkCanvas::SaveLayerStrategy SkNoDrawCanvas::getSaveLayerStrategy(const SaveLayerRec& rec) { in getSaveLayerStrategy()
2918 SkRasterHandleAllocator::Handle SkCanvas::accessTopRasterHandle() const { in accessTopRasterHandle()
2952 std::unique_ptr<SkCanvas>
2967 return hndl ? std::unique_ptr<SkCanvas>(new SkCanvas(bm, std::move(alloc), hndl)) : nullptr; in MakeCanvas()