void SkRecorder::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint) { APPEND(DrawTextOnPath, delay_copy(paint), this->copy((const char*)text, byteLength), byteLength, delay_copy(path), this->copy(matrix)); }
void SkRecorder::onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, const SkPaint* paint, DrawBitmapRectFlags flags) { if (kBleed_DrawBitmapRectFlag == flags) { APPEND(DrawBitmapRectToRectBleed, this->copy(paint), delay_copy(bitmap), this->copy(src), dst); return; } SkASSERT(kNone_DrawBitmapRectFlag == flags); APPEND(DrawBitmapRectToRect, this->copy(paint), delay_copy(bitmap), this->copy(src), dst); }
void SkRecorder::drawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], SkScalar constY, const SkPaint& paint) { const unsigned points = paint.countText(text, byteLength); APPEND(DrawPosTextH, this->copy((const char*)text, byteLength), byteLength, this->copy(xpos, points), constY, delay_copy(paint)); }
void SkRecorder::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, const SkPaint* paint, DrawBitmapRectFlags flags) { APPEND(DrawBitmapRectToRect, this->copy(paint), delay_copy(bitmap), this->copy(src), dst, flags); }
void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint) { APPEND(DrawPatch, delay_copy(paint), cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : NULL, colors ? this->copy(colors, SkPatchUtils::kNumCorners) : NULL, texCoords ? this->copy(texCoords, SkPatchUtils::kNumCorners) : NULL, xmode); }
void SkRecorder::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], const SkPaint& paint) { const unsigned points = paint.countText(text, byteLength); APPEND(DrawPosText, delay_copy(paint), this->copy((const char*)text, byteLength), byteLength, this->copy(pos, points)); }
void SkRecorder::drawVertices(VertexMode vmode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int indexCount, const SkPaint& paint) { APPEND(DrawVertices, delay_copy(paint), vmode, vertexCount, this->copy(vertices, vertexCount), texs ? this->copy(texs, vertexCount) : NULL, colors ? this->copy(colors, vertexCount) : NULL, xmode, this->copy(indices, indexCount), indexCount); }
void SkRecorder::drawPath(const SkPath& path, const SkPaint& paint) { APPEND(DrawPath, delay_copy(paint), delay_copy(path)); }
void SkRecorder::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, const SkPaint& paint) { APPEND(DrawText, delay_copy(paint), this->copy((const char*)text, byteLength), byteLength, x, y); }
void SkRecorder::drawSprite(const SkBitmap& bitmap, int left, int top, const SkPaint* paint) { APPEND(DrawSprite, this->copy(paint), delay_copy(bitmap), left, top); }
void SkRecorder::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, const SkRect& dst, const SkPaint* paint) { APPEND(DrawBitmapNine, this->copy(paint), delay_copy(bitmap), center, dst); }
void SkRecorder::onDrawPath(const SkPath& path, const SkPaint& paint) { TRY_MINIRECORDER(drawPath, path, paint); APPEND(DrawPath, delay_copy(paint), delay_copy(path)); }
void SkRecorder::drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint& paint) { APPEND(DrawPoints, delay_copy(paint), mode, count, this->copy(pts, count)); }
void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { APPEND(ClipRegion, delay_copy(deviceRgn), op); INHERITED(onClipRegion, deviceRgn, op); }
void SkRecorder::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint) { APPEND(DrawDRRect, delay_copy(paint), outer, inner); }
void SkRecorder::drawOval(const SkRect& oval, const SkPaint& paint) { APPEND(DrawOval, delay_copy(paint), oval); }
void SkRecorder::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) { TRY_MINIRECORDER(drawTextBlob, blob, x, y, paint); APPEND(DrawTextBlob, delay_copy(paint), blob, x, y); }
void SkRecorder::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) { APPEND(DrawTextBlob, delay_copy(paint), blob, x, y); }
void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle) { APPEND(ClipPath, delay_copy(path), op, edgeStyle == kSoft_ClipEdgeStyle); INHERITED(updateClipConservativelyUsingBounds, path.getBounds(), op, path.isInverseFillType()); }
void SkRecorder::drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, const SkPaint* paint) { APPEND(DrawBitmap, this->copy(paint), delay_copy(bitmap), left, top); }
void SkRecorder::drawPaint(const SkPaint& paint) { APPEND(DrawPaint, delay_copy(paint)); }
void SkRecorder::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& matrix, const SkPaint* paint) { APPEND(DrawBitmapMatrix, this->copy(paint), delay_copy(bitmap), matrix); }
void SkRecorder::drawRect(const SkRect& rect, const SkPaint& paint) { APPEND(DrawRect, delay_copy(paint), rect); }
void SkRecorder::onDrawRect(const SkRect& rect, const SkPaint& paint) { TRY_MINIRECORDER(drawRect, rect, paint); APPEND(DrawRect, delay_copy(paint), rect); }