Index: src/pipe/SkGPipeRead.cpp |
diff --git a/src/pipe/SkGPipeRead.cpp b/src/pipe/SkGPipeRead.cpp |
index 8827adc73f393e6ecf58c8c6b09a4e107c4ab607..aaa6b4c9c1d2762e4d20b9b9caf0a1476c265d78 100644 |
--- a/src/pipe/SkGPipeRead.cpp |
+++ b/src/pipe/SkGPipeRead.cpp |
@@ -707,7 +707,7 @@ static void annotation_rp(SkCanvas*, SkReader32* reader, uint32_t op32, |
const size_t size = DrawOp_unpackData(op32); |
if (size > 0) { |
SkReadBuffer buffer(reader->skip(size), size); |
- p->setAnnotation(SkNEW_ARGS(SkAnnotation, (buffer)))->unref(); |
+ p->setAnnotation(SkAnnotation::Create(buffer))->unref(); |
SkASSERT(buffer.offset() == size); |
} else { |
p->setAnnotation(NULL); |