commit | 14b6aba0997a8b463eae824d770fc5ad1ab89617 | [log] [tgz] |
---|---|---|
author | reed <reed@google.com> | Fri Aug 29 10:25:26 2014 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Aug 29 10:25:26 2014 -0700 |
tree | af4adf0e0f672cb81ef1f2b2101923f1f1af8827 | |
parent | b2f94d1f4a74f82ea4dd3feb1690ef6d05892afb [diff] [blame] |
harden requirements on SkBitmapCache BUG=skia: R=humper@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/521433002
diff --git a/src/lazy/SkCachingPixelRef.cpp b/src/lazy/SkCachingPixelRef.cpp index 6d97aae..5643188 100644 --- a/src/lazy/SkCachingPixelRef.cpp +++ b/src/lazy/SkCachingPixelRef.cpp
@@ -54,6 +54,7 @@ fErrorInDecoding = true; return false; } + fLockedBitmap.setImmutable(); SkBitmapCache::Add(this->getGenerationID(), info.fWidth, info.fHeight, fLockedBitmap); }