Index: src/gpu/GrBufferedDrawTarget.h |
diff --git a/src/gpu/GrBufferedDrawTarget.h b/src/gpu/GrBufferedDrawTarget.h |
index f11a9d88048aaf4419365a936c85e6d147cf9961..82421ab19407659888c9cf873272c3d62490782c 100644 |
--- a/src/gpu/GrBufferedDrawTarget.h |
+++ b/src/gpu/GrBufferedDrawTarget.h |
@@ -62,7 +62,7 @@ private: |
StateForPathDraw* allocState(const GrPrimitiveProcessor* primProc = NULL) { |
void* allocation = fPipelineBuffer.alloc(sizeof(StateForPathDraw), |
SkChunkAlloc::kThrow_AllocFailType); |
- return SkNEW_PLACEMENT_ARGS(allocation, StateForPathDraw, (primProc)); |
+ return new (allocation) StateForPathDraw(primProc); |
} |
void unallocState(StateForPathDraw* state) { |