Index: gm/annotated_text.cpp |
diff --git a/gm/annotated_text.cpp b/gm/annotated_text.cpp |
index 30f67b0201bf7fbb5c19fce622bbc27e6f546ce8..70ee9f3de144ec107e4f68aa551d5b0a4a1d5304 100644 |
--- a/gm/annotated_text.cpp |
+++ b/gm/annotated_text.cpp |
@@ -16,8 +16,8 @@ static void draw_url_annotated_text_with_box( |
SkRect bounds; |
(void)paint.measureText(text, byteLength, &bounds); |
bounds.offset(x, y); |
- SkAutoTUnref<SkData> urlData(SkData::NewWithCString(url)); |
- SkAnnotateRectWithURL(canvas, bounds, urlData); |
+ sk_sp<SkData> urlData(SkData::MakeWithCString(url)); |
+ SkAnnotateRectWithURL(canvas, bounds, urlData.get()); |
SkPaint shade; |
shade.setColor(0x80346180); |
canvas->drawRect(bounds, shade); |