Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3504)

Unified Diff: cc/region.cc

Issue 11368156: cc: Expose clear and swap on Region (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/region.h ('k') | cc/region_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « cc/region.h ('k') | cc/region_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698