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

Unified Diff: src/core/SkMipMap.cpp

Issue 2000713003: Add SkColorSpace to SkImageInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@public
Patch Set: Ref counting fixes and other fixes Created 4 years, 7 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/SkMipMap.cpp
diff --git a/src/core/SkMipMap.cpp b/src/core/SkMipMap.cpp
index f579aae955b7ee4fb4bd5ac1efc74071c875019e..64aa845ae861ab67eb9195cfe98e5a33e16add43 100644
--- a/src/core/SkMipMap.cpp
+++ b/src/core/SkMipMap.cpp
@@ -406,6 +406,7 @@ SkMipMap* SkMipMap::Build(const SkPixmap& src, SkDiscardableFactoryProc fact) {
// init
mipmap->fCount = countLevels;
+ memset(mipmap->writable_data(), 0, mipmap->size());
msarett 2016/05/26 13:43:05 Not sure if this ok... I can also make it more fi
mipmap->fLevels = (Level*)mipmap->writable_data();
Level* levels = mipmap->fLevels;

Powered by Google App Engine
This is Rietveld 408576698