Chromium Code Reviews| Index: cc/region.cc |
| diff --git a/cc/region.cc b/cc/region.cc |
| index 7a5e83cd60fbce38d8f627c82f90fc06ce9e2cae..c4517e9d85469d65779122be56d485c0850919b1 100644 |
| --- a/cc/region.cc |
| +++ b/cc/region.cc |
| @@ -38,6 +38,14 @@ const Region& Region::operator=(const Region& region) { |
| return *this; |
| } |
| +void Region::Swap(Region& region) { |
| + region.skregion_.swap(skregion_); |
| +} |
| + |
| +void Region::Clear() { |
| + skregion_.setEmpty(); |
| +} |
| + |
| bool Region::IsEmpty() const { |
| return skregion_.isEmpty(); |
| } |