Lines Matching refs:rhs
74 Region::Region(const Region& rhs) in Region() argument
75 : mStorage(rhs.mStorage) in Region()
78 validate(rhs, "rhs copy-ctor"); in Region()
82 Region::Region(const Rect& rhs) { in Region() argument
83 mStorage.add(rhs); in Region()
220 Region& Region::operator = (const Region& rhs) in operator =() argument
224 validate(rhs, "rhs.operator="); in operator =()
226 mStorage = rhs.mStorage; in operator =()
315 Region& Region::orSelf(const Region& rhs) { in orSelf() argument
316 return operationSelf(rhs, op_or); in orSelf()
318 Region& Region::xorSelf(const Region& rhs) { in xorSelf() argument
319 return operationSelf(rhs, op_xor); in xorSelf()
321 Region& Region::andSelf(const Region& rhs) { in andSelf() argument
322 return operationSelf(rhs, op_and); in andSelf()
324 Region& Region::subtractSelf(const Region& rhs) { in subtractSelf() argument
325 return operationSelf(rhs, op_nand); in subtractSelf()
327 Region& Region::operationSelf(const Region& rhs, uint32_t op) { in operationSelf() argument
329 boolean_operation(op, *this, lhs, rhs); in operationSelf()
354 const Region Region::merge(const Rect& rhs) const { in merge()
355 return operation(rhs, op_or); in merge()
357 const Region Region::mergeExclusive(const Rect& rhs) const { in mergeExclusive()
358 return operation(rhs, op_xor); in mergeExclusive()
360 const Region Region::intersect(const Rect& rhs) const { in intersect()
361 return operation(rhs, op_and); in intersect()
363 const Region Region::subtract(const Rect& rhs) const { in subtract()
364 return operation(rhs, op_nand); in subtract()
366 const Region Region::operation(const Rect& rhs, uint32_t op) const { in operation() argument
368 boolean_operation(op, result, *this, rhs); in operation()
374 const Region Region::merge(const Region& rhs) const { in merge()
375 return operation(rhs, op_or); in merge()
377 const Region Region::mergeExclusive(const Region& rhs) const { in mergeExclusive()
378 return operation(rhs, op_xor); in mergeExclusive()
380 const Region Region::intersect(const Region& rhs) const { in intersect()
381 return operation(rhs, op_and); in intersect()
383 const Region Region::subtract(const Region& rhs) const { in subtract()
384 return operation(rhs, op_nand); in subtract()
386 const Region Region::operation(const Region& rhs, uint32_t op) const { in operation() argument
388 boolean_operation(op, result, *this, rhs); in operation()
400 Region& Region::orSelf(const Region& rhs, int dx, int dy) { in orSelf() argument
401 return operationSelf(rhs, dx, dy, op_or); in orSelf()
403 Region& Region::xorSelf(const Region& rhs, int dx, int dy) { in xorSelf() argument
404 return operationSelf(rhs, dx, dy, op_xor); in xorSelf()
406 Region& Region::andSelf(const Region& rhs, int dx, int dy) { in andSelf() argument
407 return operationSelf(rhs, dx, dy, op_and); in andSelf()
409 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) { in subtractSelf() argument
410 return operationSelf(rhs, dx, dy, op_nand); in subtractSelf()
412 Region& Region::operationSelf(const Region& rhs, int dx, int dy, uint32_t op) { in operationSelf() argument
414 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
420 const Region Region::merge(const Region& rhs, int dx, int dy) const { in merge() argument
421 return operation(rhs, dx, dy, op_or); in merge()
423 const Region Region::mergeExclusive(const Region& rhs, int dx, int dy) const { in mergeExclusive() argument
424 return operation(rhs, dx, dy, op_xor); in mergeExclusive()
426 const Region Region::intersect(const Region& rhs, int dx, int dy) const { in intersect() argument
427 return operation(rhs, dx, dy, op_and); in intersect()
429 const Region Region::subtract(const Region& rhs, int dx, int dy) const { in subtract() argument
430 return operation(rhs, dx, dy, op_nand); in subtract()
432 const Region Region::operation(const Region& rhs, int dx, int dy, uint32_t op) const { in operation() argument
434 boolean_operation(op, result, *this, rhs, dx, dy); in operation()
462 static inline T min(T rhs, T lhs) { return rhs < lhs ? rhs : lhs; } in min() argument
464 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; } in max() argument
620 const Region& rhs, int dx, int dy) in boolean_operation() argument
624 validate(rhs, "boolean_operation (before): rhs"); in boolean_operation()
632 Rect const * const rhs_rects = rhs.getArray(&rhs_count); in boolean_operation()
644 validate(rhs, "boolean_operation: rhs"); in boolean_operation()
712 rhs.dump("rhs"); in boolean_operation()
730 const Rect& rhs, int dx, int dy) in boolean_operation() argument
734 if (!rhs.isValid() && rhs != Rect::INVALID_RECT) { in boolean_operation()
736 op, rhs.left, rhs.top, rhs.right, rhs.bottom); in boolean_operation()
741 boolean_operation(op, dst, lhs, Region(rhs), dx, dy); in boolean_operation()
747 region_operator<Rect>::region rhs_region(&rhs, 1, dx, dy); in boolean_operation()
758 const Region& lhs, const Region& rhs) in boolean_operation() argument
760 boolean_operation(op, dst, lhs, rhs, 0, 0); in boolean_operation()
764 const Region& lhs, const Rect& rhs) in boolean_operation() argument
766 boolean_operation(op, dst, lhs, rhs, 0, 0); in boolean_operation()