Index: src/core/SkPaint.cpp |
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp |
index 9191ce00673d78eb39b429e0a0448b4f349a2de7..6c0991e0dd540dd2f718e18900f4e742b66dc45d 100644 |
--- a/src/core/SkPaint.cpp |
+++ b/src/core/SkPaint.cpp |
@@ -2164,7 +2164,7 @@ void SkPaint::unflatten(SkReadBuffer& buffer) { |
SkSafeUnref(this->setImageFilter(buffer.readImageFilter())); |
if (buffer.readBool()) { |
- this->setAnnotation(SkNEW_ARGS(SkAnnotation, (buffer)))->unref(); |
+ this->setAnnotation(SkAnnotation::Create(buffer))->unref(); |
} |
} else { |
this->setPathEffect(NULL); |
@@ -2684,7 +2684,7 @@ void SkPaint::FlatteningTraits::Unflatten(SkReadBuffer& buffer, SkPaint* paint) |
#undef F |
#undef F_UNREF |
if (dirty & kAnnotation_DirtyBit) { |
- paint->setAnnotation(SkNEW_ARGS(SkAnnotation, (buffer)))->unref(); |
+ paint->setAnnotation(SkAnnotation::Create(buffer))->unref(); |
} |
#ifdef SK_BUILD_FOR_ANDROID |
if (dirty & kPaintOptionsAndroid_DirtyBit) { |