Index: src/gpu/gl/GrGLGpuProgramCache.cpp |
diff --git a/src/gpu/gl/GrGLGpuProgramCache.cpp b/src/gpu/gl/GrGLGpuProgramCache.cpp |
index 11e237a73c22c50f0ca71f902c397664f6b6bc46..c6b673b95be4411ec6e95e5c08718ccb60462054 100644 |
--- a/src/gpu/gl/GrGLGpuProgramCache.cpp |
+++ b/src/gpu/gl/GrGLGpuProgramCache.cpp |
@@ -58,7 +58,7 @@ GrGLGpu::ProgramCache::ProgramCache(GrGLGpu* gpu) |
GrGLGpu::ProgramCache::~ProgramCache() { |
for (int i = 0; i < fCount; ++i){ |
- SkDELETE(fEntries[i]); |
+ delete fEntries[i]; |
} |
// dump stats |
#ifdef PROGRAM_CACHE_STATS |
@@ -80,7 +80,7 @@ void GrGLGpu::ProgramCache::abandon() { |
for (int i = 0; i < fCount; ++i) { |
SkASSERT(fEntries[i]->fProgram.get()); |
fEntries[i]->fProgram->abandon(); |
- SkDELETE(fEntries[i]); |
+ delete fEntries[i]; |
} |
fCount = 0; |
} |
@@ -131,7 +131,7 @@ GrGLProgram* GrGLGpu::ProgramCache::refProgram(const DrawArgs& args) { |
} |
int purgeIdx = 0; |
if (fCount < kMaxEntries) { |
- entry = SkNEW(Entry); |
+ entry = new Entry; |
purgeIdx = fCount++; |
fEntries[purgeIdx] = entry; |
} else { |