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

Unified Diff: src/utils/SkBitSet.cpp

Issue 2112943002: SkPDF: Glyph Useage Map improvements (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 months 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 | « src/utils/SkBitSet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkBitSet.cpp
diff --git a/src/utils/SkBitSet.cpp b/src/utils/SkBitSet.cpp
index 7d03dfc0679e4016a69fd6801ce02af407bdec61..0a1ecacf8ab2583074d1fe72afaafcd60a51572e 100755
--- a/src/utils/SkBitSet.cpp
+++ b/src/utils/SkBitSet.cpp
@@ -21,6 +21,14 @@ SkBitSet::SkBitSet(const SkBitSet& source)
*this = source;
}
+SkBitSet::SkBitSet(SkBitSet&& source)
+ : fBitData(source.fBitData.release())
+ , fDwordCount(source.fDwordCount)
+ , fBitCount(source.fBitCount) {
+ source.fDwordCount = 0;
+ source.fBitCount = 0;
+}
+
SkBitSet& SkBitSet::operator=(const SkBitSet& rhs) {
if (this == &rhs) {
return *this;
« no previous file with comments | « src/utils/SkBitSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698