Lines Matching refs:dst

24 static void Region_setRegion(JNIEnv* env, jobject, SkRegion* dst, const SkRegion* src) {
25 SkASSERT(dst && src);
26 *dst = *src;
29 static jboolean Region_setRect(JNIEnv* env, jobject, SkRegion* dst, int left, int top, int right, int bottom) {
30 return dst->setRect(left, top, right, bottom);
33 static jboolean Region_setPath(JNIEnv* env, jobject, SkRegion* dst,
35 SkASSERT(dst && path && clip);
36 return dst->setPath(*path, *clip);
48 static jboolean Region_op0(JNIEnv* env, jobject, SkRegion* dst, int left, int top, int right, int bottom, int op) {
52 return dst->op(ir, (SkRegion::Op)op);
55 static jboolean Region_op1(JNIEnv* env, jobject, SkRegion* dst, jobject rectObject, const SkRegion* region, int op) {
58 return dst->op(ir, *region, (SkRegion::Op)op);
61 static jboolean Region_op2(JNIEnv* env, jobject, SkRegion* dst, const SkRegion* region1, const SkRegion* region2, int op) {
62 return dst->op(*region1, *region2, (SkRegion::Op)op);
97 static void Region_translate(JNIEnv* env, jobject region, int x, int y, jobject dst) {
99 if (dst)
100 rgn->translate(x, y, GetSkRegion(env, dst));
105 // Scale the rectangle by given scale and set the reuslt to the dst.
106 static void scale_rect(SkIRect* dst, const SkIRect& src, float scale) {
107 dst->fLeft = (int)::roundf(src.fLeft * scale);
108 dst->fTop = (int)::roundf(src.fTop * scale);
109 dst->fRight = (int)::roundf(src.fRight * scale);
110 dst->fBottom = (int)::roundf(src.fBottom * scale);
113 // Scale the region by given scale and set the reuslt to the dst.
115 static void scale_rgn(SkRegion* dst, const SkRegion& src, float scale) {
124 dst->swap(tmp);
127 static void Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) {
129 if (dst)
130 scale_rgn(GetSkRegion(env, dst), *rgn, scale);