aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGrFontScaler.cpp
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-09 20:17:56 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-09 20:17:56 +0000
commitc377baf406996aed18d82d328029c82dbc3b8dda (patch)
tree215bc5ea788578b459423064e4ab17513a82c91d /src/gpu/SkGrFontScaler.cpp
parent70b4222344fc290ba03922ce246da2b3e980071d (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/SkGrFontScaler.cpp')
-rw-r--r--src/gpu/SkGrFontScaler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/SkGrFontScaler.cpp b/src/gpu/SkGrFontScaler.cpp
index 430b5993eb..26412f4a35 100644
--- a/src/gpu/SkGrFontScaler.cpp
+++ b/src/gpu/SkGrFontScaler.cpp
@@ -95,7 +95,7 @@ GrMaskFormat SkGrFontScaler::getMaskFormat() {
const GrKey* SkGrFontScaler::getKey() {
if (NULL == fKey) {
- fKey = new SkGrDescKey(fStrike->getDescriptor());
+ fKey = SkNEW_ARGS(SkGrDescKey, (fStrike->getDescriptor()));
}
return fKey;
}