Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Unified Diff: src/gpu/GrResourceProvider.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrResourceCache.cpp ('k') | src/gpu/GrStencilAndCoverPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrResourceProvider.cpp
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp
index 3adb0fafc23b88a753ed7f83d70cb99419e70dcb..e328c666a09bba956cf188f7d749947688f4dd99 100644
--- a/src/gpu/GrResourceProvider.cpp
+++ b/src/gpu/GrResourceProvider.cpp
@@ -37,7 +37,7 @@ const GrIndexBuffer* GrResourceProvider::createInstancedIndexBuffer(const uint16
uint16_t* data = (uint16_t*) buffer->map();
bool useTempData = (NULL == data);
if (useTempData) {
- data = SkNEW_ARRAY(uint16_t, reps * patternSize);
+ data = new uint16_t[reps * patternSize];
}
for (int i = 0; i < reps; ++i) {
int baseIdx = i * patternSize;
@@ -51,7 +51,7 @@ const GrIndexBuffer* GrResourceProvider::createInstancedIndexBuffer(const uint16
buffer->unref();
return NULL;
}
- SkDELETE_ARRAY(data);
+ delete[] data;
} else {
buffer->unmap();
}
@@ -161,5 +161,5 @@ GrBatchAtlas* GrResourceProvider::createAtlas(GrPixelConfig config,
if (!texture) {
return NULL;
}
- return SkNEW_ARGS(GrBatchAtlas, (texture, numPlotsX, numPlotsY));
+ return new GrBatchAtlas(texture, numPlotsX, numPlotsY);
}
« no previous file with comments | « src/gpu/GrResourceCache.cpp ('k') | src/gpu/GrStencilAndCoverPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698