Lines Matching refs:reg
451 explicit rasterizer(Region& reg) in rasterizer() argument
452 : bounds(INT_MAX, 0, INT_MIN, 0), storage(reg.mStorage), head(), tail(), cur() { in rasterizer()
538 bool Region::validate(const Region& reg, const char* name, bool silent) in validate() argument
540 if (reg.mStorage.isEmpty()) { in validate()
547 const_iterator cur = reg.begin(); in validate()
548 const_iterator const tail = reg.end(); in validate()
597 if (b != reg.getBounds()) { in validate()
602 reg.getBounds().left, reg.getBounds().top, in validate()
603 reg.getBounds().right, reg.getBounds().bottom); in validate()
605 if (reg.mStorage.size() == 2) { in validate()
611 reg.dump(name); in validate()
769 void Region::translate(Region& reg, int dx, int dy) in translate() argument
771 if ((dx || dy) && !reg.isEmpty()) { in translate()
773 validate(reg, "translate (before)"); in translate()
775 size_t count = reg.mStorage.size(); in translate()
776 Rect* rects = reg.mStorage.editArray(); in translate()
783 validate(reg, "translate (after)"); in translate()
788 void Region::translate(Region& dst, const Region& reg, int dx, int dy) in translate() argument
790 dst = reg; in translate()