Lines Matching refs:canvas
35 static void anp_deleteCanvas(ANPCanvas* canvas) { in anp_deleteCanvas() argument
36 delete canvas; in anp_deleteCanvas()
39 static void anp_save(ANPCanvas* canvas) { in anp_save() argument
40 canvas->skcanvas->save(); in anp_save()
43 static void anp_restore(ANPCanvas* canvas) { in anp_restore() argument
44 canvas->skcanvas->restore(); in anp_restore()
47 static void anp_translate(ANPCanvas* canvas, float tx, float ty) { in anp_translate() argument
48 canvas->skcanvas->translate(SkFloatToScalar(tx), SkFloatToScalar(ty)); in anp_translate()
51 static void anp_scale(ANPCanvas* canvas, float sx, float sy) { in anp_scale() argument
52 canvas->skcanvas->scale(SkFloatToScalar(sx), SkFloatToScalar(sy)); in anp_scale()
55 static void anp_rotate(ANPCanvas* canvas, float degrees) { in anp_rotate() argument
56 canvas->skcanvas->rotate(SkFloatToScalar(degrees)); in anp_rotate()
59 static void anp_skew(ANPCanvas* canvas, float kx, float ky) { in anp_skew() argument
60 canvas->skcanvas->skew(SkFloatToScalar(kx), SkFloatToScalar(ky)); in anp_skew()
63 static void anp_clipRect(ANPCanvas* canvas, const ANPRectF* rect) { in anp_clipRect() argument
65 canvas->skcanvas->clipRect(*SkANP::SetRect(&r, *rect)); in anp_clipRect()
68 static void anp_clipPath(ANPCanvas* canvas, const ANPPath* path) { in anp_clipPath() argument
69 canvas->skcanvas->clipPath(*path); in anp_clipPath()
71 static void anp_concat(ANPCanvas* canvas, const ANPMatrix* matrix) { in anp_concat() argument
72 canvas->skcanvas->concat(*matrix); in anp_concat()
75 static void anp_getTotalMatrix(ANPCanvas* canvas, ANPMatrix* matrix) { in anp_getTotalMatrix() argument
76 const SkMatrix& src = canvas->skcanvas->getTotalMatrix(); in anp_getTotalMatrix()
80 static bool anp_getLocalClipBounds(ANPCanvas* canvas, ANPRectF* r, in anp_getLocalClipBounds() argument
83 if (canvas->skcanvas->getClipBounds(&bounds, in anp_getLocalClipBounds()
91 static bool anp_getDeviceClipBounds(ANPCanvas* canvas, ANPRectI* r) { in anp_getDeviceClipBounds() argument
92 const SkRegion& clip = canvas->skcanvas->getTotalClip(); in anp_getDeviceClipBounds()
100 static void anp_drawColor(ANPCanvas* canvas, ANPColor color) { in anp_drawColor() argument
101 canvas->skcanvas->drawColor(color); in anp_drawColor()
104 static void anp_drawPaint(ANPCanvas* canvas, const ANPPaint* paint) { in anp_drawPaint() argument
105 canvas->skcanvas->drawPaint(*paint); in anp_drawPaint()
108 static void anp_drawLine(ANPCanvas* canvas, float x0, float y0, in anp_drawLine() argument
110 canvas->skcanvas->drawLine(SkFloatToScalar(x0), SkFloatToScalar(y0), in anp_drawLine()
114 static void anp_drawRect(ANPCanvas* canvas, const ANPRectF* rect, in anp_drawRect() argument
117 canvas->skcanvas->drawRect(*SkANP::SetRect(&r, *rect), *paint); in anp_drawRect()
120 static void anp_drawOval(ANPCanvas* canvas, const ANPRectF* rect, in anp_drawOval() argument
123 canvas->skcanvas->drawOval(*SkANP::SetRect(&r, *rect), *paint); in anp_drawOval()
126 static void anp_drawPath(ANPCanvas* canvas, const ANPPath* path, in anp_drawPath() argument
128 canvas->skcanvas->drawPath(*path, *paint); in anp_drawPath()
131 static void anp_drawText(ANPCanvas* canvas, const void* text, uint32_t length, in anp_drawText() argument
133 canvas->skcanvas->drawText(text, length, in anp_drawText()
138 static void anp_drawPosText(ANPCanvas* canvas, const void* text, in anp_drawPosText() argument
140 canvas->skcanvas->drawPosText(text, byteLength, in anp_drawPosText()
144 static void anp_drawBitmap(ANPCanvas* canvas, const ANPBitmap* bitmap, in anp_drawBitmap() argument
147 canvas->skcanvas->drawBitmap(*SkANP::SetBitmap(&bm, *bitmap), in anp_drawBitmap()
152 static void anp_drawBitmapRect(ANPCanvas* canvas, const ANPBitmap* bitmap, in anp_drawBitmapRect() argument
162 canvas->skcanvas->drawBitmapRect(*SkANP::SetBitmap(&bm, *bitmap), srcPtr, in anp_drawBitmapRect()