Lines Matching defs:region

38     SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle);
39 SkASSERT(region != NULL);
40 return region;
48 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle);
49 SkASSERT(region);
50 delete region;
78 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle);
79 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds);
80 bool result = !region->isEmpty();
85 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle);
87 bool result = region->getBoundaryPath(path);
102 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle);
105 bool result = dst->op(ir, *region, (SkRegion::Op)op);
119 static jboolean Region_isEmpty(JNIEnv* env, jobject region) {
120 bool result = GetSkRegion(env, region)->isEmpty();
124 static jboolean Region_isRect(JNIEnv* env, jobject region) {
125 bool result = GetSkRegion(env, region)->isRect();
129 static jboolean Region_isComplex(JNIEnv* env, jobject region) {
130 bool result = GetSkRegion(env, region)->isComplex();
134 static jboolean Region_contains(JNIEnv* env, jobject region, jint x, jint y) {
135 bool result = GetSkRegion(env, region)->contains(x, y);
139 static jboolean Region_quickContains(JNIEnv* env, jobject region, jint left, jint top, jint right, jint bottom) {
140 bool result = GetSkRegion(env, region)->quickContains(left, top, right, bottom);
144 static jboolean Region_quickRejectIIII(JNIEnv* env, jobject region, jint left, jint top, jint right, jint bottom) {
147 bool result = GetSkRegion(env, region)->quickReject(ir);
151 static jboolean Region_quickRejectRgn(JNIEnv* env, jobject region, jobject other) {
152 bool result = GetSkRegion(env, region)->quickReject(*GetSkRegion(env, other));
156 static void Region_translate(JNIEnv* env, jobject region, jint x, jint y, jobject dst) {
157 SkRegion* rgn = GetSkRegion(env, region);
172 // Scale the region by given scale and set the reuslt to the dst.
173 // dest and src can be the same region instance.
186 static void Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) {
187 SkRegion* rgn = GetSkRegion(env, region);
195 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle);
196 char* str = region->toString();
221 SkRegion* region = new SkRegion;
222 size_t actualSize = region->readFromMemory(regionData, size);
224 delete region;
228 return reinterpret_cast<jlong>(region);
233 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle);
240 const size_t size = region->writeToMemory(nullptr);
247 const size_t sizeWritten = region->writeToMemory(dst);
268 SkRegion fRgn; // a copy of the caller's region
280 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle);
281 SkASSERT(region);
282 return reinterpret_cast<jlong>(new RgnIterPair(*region));
327 // these are methods that take the java region object