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

Unified Diff: gm/internal_links.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
Index: gm/internal_links.cpp
diff --git a/gm/internal_links.cpp b/gm/internal_links.cpp
index 995cd69d421ea39af79a9b50a66a3aca8676b232..6d70c1ef981592fd62871e0e9650b498214f0963 100644
--- a/gm/internal_links.cpp
+++ b/gm/internal_links.cpp
@@ -32,7 +32,7 @@ protected:
}
virtual void onDraw(SkCanvas* canvas) {
- SkAutoTUnref<SkData> name(SkData::NewWithCString("target-a"));
+ sk_sp<SkData> name(SkData::MakeWithCString("target-a"));
canvas->save();
canvas->translate(SkIntToScalar(100), SkIntToScalar(100));

Powered by Google App Engine
This is Rietveld 408576698