diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-09 20:17:56 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-09 20:17:56 +0000 |
commit | c377baf406996aed18d82d328029c82dbc3b8dda (patch) | |
tree | 215bc5ea788578b459423064e4ab17513a82c91d /src/gpu/GrAllocator.h | |
parent | 70b4222344fc290ba03922ce246da2b3e980071d (diff) |
Add placement new macros to SkPostConfig, call SkNEW* from Ganesh.
TODO: unify with the placement new implementation in SkTemplatesPriv.h,
once various issues there are overcome. reed@ should be taking the lead
there.
http://codereview.appspot.com/6384043/
git-svn-id: http://skia.googlecode.com/svn/trunk@4492 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrAllocator.h')
-rwxr-xr-x | src/gpu/GrAllocator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrAllocator.h b/src/gpu/GrAllocator.h index f333d42e37..ae456cd170 100755 --- a/src/gpu/GrAllocator.h +++ b/src/gpu/GrAllocator.h @@ -163,14 +163,14 @@ public: T& push_back() { void* item = fAllocator.push_back(); GrAssert(NULL != item); - new (item) T; + SkNEW_PLACEMENT(item, T); return *(T*)item; } T& push_back(const T& t) { void* item = fAllocator.push_back(); GrAssert(NULL != item); - new (item) T(t); + SkNEW_PLACEMENT_ARGS(item, T, (t)); return *(T*)item; } |