Fix compilation error related to using nonexistent sk_malloc instead of sk_malloc_throw. VC++ lazy template code compilation let this work on windows since the wrong function name was only in currently unused templated functions.
git-svn-id: http://skia.googlecode.com/svn/trunk@2266 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
49313f6b43
commit
5c6ae60a71
@ -85,7 +85,7 @@ public:
|
|||||||
fCount = array.count();
|
fCount = array.count();
|
||||||
fReserveCount = gMIN_ALLOC_COUNT;
|
fReserveCount = gMIN_ALLOC_COUNT;
|
||||||
fAllocCount = SkMax32(fReserveCount, fCount);
|
fAllocCount = SkMax32(fReserveCount, fCount);
|
||||||
fMemArray = sk_malloc(sizeof(T) * fAllocCount);
|
fMemArray = sk_malloc_throw(sizeof(T) * fAllocCount);
|
||||||
fPreAllocMemArray = NULL;
|
fPreAllocMemArray = NULL;
|
||||||
|
|
||||||
if (DATA_TYPE) {
|
if (DATA_TYPE) {
|
||||||
@ -107,7 +107,7 @@ public:
|
|||||||
fCount = count;
|
fCount = count;
|
||||||
fReserveCount = gMIN_ALLOC_COUNT;
|
fReserveCount = gMIN_ALLOC_COUNT;
|
||||||
fAllocCount = SkMax32(fReserveCount, fCount);
|
fAllocCount = SkMax32(fReserveCount, fCount);
|
||||||
fMemArray = sk_malloc(sizeof(T) * fAllocCount);
|
fMemArray = sk_malloc_throw(sizeof(T) * fAllocCount);
|
||||||
fPreAllocMemArray = NULL;
|
fPreAllocMemArray = NULL;
|
||||||
if (DATA_TYPE) {
|
if (DATA_TYPE) {
|
||||||
memcpy(fMemArray, array, sizeof(T) * fCount);
|
memcpy(fMemArray, array, sizeof(T) * fCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user