diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-23 14:59:40 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-23 14:59:40 +0000 |
commit | 0f2b1953c7a8f8bb5a25d573dd9e215eaa10a2f8 (patch) | |
tree | 29e50247d17834d639b6169f345bf5f3747521a4 /include | |
parent | 0fb775cd77e011b3ba202682a5e15f9d9f9e3b0b (diff) |
Fix bug in SkAutoSMalloc::reset
https://codereview.chromium.org/15858007/
git-svn-id: http://skia.googlecode.com/svn/trunk@9257 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkTypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index f881719a17..096acc55c0 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h @@ -588,7 +588,7 @@ public: SkAutoMalloc::OnShrink shrink = SkAutoMalloc::kAlloc_OnShrink, bool* didChangeAlloc = NULL) { size = (size < kSize) ? kSize : size; - bool alloc = size != fSize && (SkAutoMalloc::kAlloc_OnShrink == shrink || size < fSize); + bool alloc = size != fSize && (SkAutoMalloc::kAlloc_OnShrink == shrink || size > fSize); if (NULL != didChangeAlloc) { *didChangeAlloc = alloc; } |