am 4ecf6ec9: Merge "Restore Region::set(uint32_t, uint32_t)"
* commit '4ecf6ec932644b680d5e13791275dd3bc1a1ee6d': Restore Region::set(uint32_t, uint32_t)
This commit is contained in:
commit
e18155e1c6
|
@ -59,6 +59,7 @@ public:
|
||||||
void clear();
|
void clear();
|
||||||
void set(const Rect& r);
|
void set(const Rect& r);
|
||||||
void set(int32_t w, int32_t h);
|
void set(int32_t w, int32_t h);
|
||||||
|
void set(uint32_t w, uint32_t h);
|
||||||
|
|
||||||
Region& orSelf(const Rect& rhs);
|
Region& orSelf(const Rect& rhs);
|
||||||
Region& xorSelf(const Rect& rhs);
|
Region& xorSelf(const Rect& rhs);
|
||||||
|
|
|
@ -260,6 +260,12 @@ void Region::set(int32_t w, int32_t h)
|
||||||
mStorage.add(Rect(w, h));
|
mStorage.add(Rect(w, h));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Region::set(uint32_t w, uint32_t h)
|
||||||
|
{
|
||||||
|
mStorage.clear();
|
||||||
|
mStorage.add(Rect(w, h));
|
||||||
|
}
|
||||||
|
|
||||||
bool Region::isTriviallyEqual(const Region& region) const {
|
bool Region::isTriviallyEqual(const Region& region) const {
|
||||||
return begin() == region.begin();
|
return begin() == region.begin();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue