commit | 060ef18d5c02029eade04961f4cf62068d72a68e | [log] [tgz] |
---|---|---|
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jul 24 12:22:40 2012 +0000 |
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jul 24 12:22:40 2012 +0000 |
tree | bfe0754abdd1097f8bc977fe64e57df31ba53883 | |
parent | e21cb18c52fe82de3412b10fc078799ac35ca94b [diff] [blame] |
Replace new with SkNEW in more effects classes. http://codereview.appspot.com/6431052/ git-svn-id: http://skia.googlecode.com/svn/trunk@4727 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/effects/SkGradientShader.cpp b/src/effects/SkGradientShader.cpp index 8838e77..2b54bd1 100644 --- a/src/effects/SkGradientShader.cpp +++ b/src/effects/SkGradientShader.cpp
@@ -728,7 +728,7 @@ SkAutoMutexAcquire ama(gMutex); if (NULL == gCache) { - gCache = new SkBitmapCache(MAX_NUM_CACHED_GRADIENT_BITMAPS); + gCache = SkNEW_ARGS(SkBitmapCache, (MAX_NUM_CACHED_GRADIENT_BITMAPS)); } size_t size = count * sizeof(int32_t);