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

Unified Diff: src/core/SkBitmap.cpp

Issue 12699002: Upstream changes from Android. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 9 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
Index: src/core/SkBitmap.cpp
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
index fe4255d9b5e2ac41d267f62dfc178d48a12e3098..1097fe5e64656ae5fe5a602e593e9d82436c317f 100644
--- a/src/core/SkBitmap.cpp
+++ b/src/core/SkBitmap.cpp
@@ -145,6 +145,9 @@ void SkBitmap::swap(SkBitmap& other) {
SkTSwap(fConfig, other.fConfig);
SkTSwap(fFlags, other.fFlags);
SkTSwap(fBytesPerPixel, other.fBytesPerPixel);
+#ifdef SK_BUILD_FOR_ANDROID
+ SkTSwap(fHasHardwareMipMap, other.fHasHardwareMipMap);
+#endif
SkDEBUGCODE(this->validate();)
}

Powered by Google App Engine
This is Rietveld 408576698