Lines Matching refs:SkCanvas
56 Canvas* Canvas::create_canvas(SkCanvas* skiaCanvas) { in create_canvas()
62 SkiaCanvas::SkiaCanvas(SkCanvas* canvas) : mCanvas(canvas) {} in SkiaCanvas()
65 mCanvasOwned = std::unique_ptr<SkCanvas>(new SkCanvas(bitmap)); in SkiaCanvas()
71 void SkiaCanvas::reset(SkCanvas* skiaCanvas) { in reset()
85 mCanvasOwned.reset(new SkCanvas(bitmap)); in setBitmap()
162 static inline SkCanvas::SaveLayerFlags layerFlags(SaveFlags::Flags flags) { in layerFlags()
163 SkCanvas::SaveLayerFlags layerFlags = 0; in layerFlags()
166 layerFlags |= SkCanvas::kDontClipToLayer_Legacy_SaveLayerFlag; in layerFlags()
175 const SkCanvas::SaveLayerRec rec(&bounds, paint, layerFlags(flags)); in saveLayer()
216 void apply(SkCanvas* canvas) const { in apply()
416 SkCanvas* canvas = mCanvas; in captureCanvasState()
458 SkCanvas::PointMode mode) { in drawPoints()
475 this->drawPoints(points, count, *filterPaint(paint), SkCanvas::kPoints_PointMode); in drawPoints()
485 this->drawPoints(points, count, *filterPaint(paint), SkCanvas::kLines_PointMode); in drawLines()
565 SkCanvas::kFast_SrcRectConstraint); in drawBitmap()
658 SkCanvas::Lattice lattice; in drawNinePatch()
670 SkAutoSTMalloc<25, SkCanvas::Lattice::RectType> flags(numFlags); in drawNinePatch()