Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: gm/annotated_text.cpp

Issue 2206633004: Move off SK_SUPPORT_LEGACY_DATA_FACTORIES. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Gotta catch 'em all. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fuzz/fuzz.cpp ('k') | gm/factory.cpp » ('j') | include/core/SkData.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « fuzz/fuzz.cpp ('k') | gm/factory.cpp » ('j') | include/core/SkData.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698