Index: src/gpu/gl/GrGLNameAllocator.cpp |
diff --git a/src/gpu/gl/GrGLNameAllocator.cpp b/src/gpu/gl/GrGLNameAllocator.cpp |
index 94792f1fab0d3ebbe79c86da908459ce102ed891..49d4564fb982ba5670471e5402863072d81b9d4c 100644 |
--- a/src/gpu/gl/GrGLNameAllocator.cpp |
+++ b/src/gpu/gl/GrGLNameAllocator.cpp |
@@ -319,10 +319,10 @@ public: |
return this->takeRef(); |
} |
- SparseNameRange* left = SkNEW_ARGS(ContiguousNameRange, (fFirst, name)); |
+ SparseNameRange* left = new ContiguousNameRange(fFirst, name); |
SparseNameRange* right = this->takeRef(); |
fFirst = name + 1; |
- return SkNEW_ARGS(SparseNameTree, (left, right)); |
+ return new SparseNameTree(left, right); |
} |
}; |
@@ -338,7 +338,7 @@ GrGLNameAllocator::~GrGLNameAllocator() { |
GrGLuint GrGLNameAllocator::allocateName() { |
if (NULL == fAllocatedNames.get()) { |
- fAllocatedNames.reset(SkNEW_ARGS(ContiguousNameRange, (fFirstName, fFirstName + 1))); |
+ fAllocatedNames.reset(new ContiguousNameRange(fFirstName, fFirstName + 1)); |
return fFirstName; |
} |