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

Unified Diff: gm/textblobcolortrans.cpp

Issue 2335493005: Use sk_sp text blob APIs (Closed)
Patch Set: SK_SUPPORT_LEGACY_TEXTBLOB_BUILDER Created 4 years, 3 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 | « gm/textblobblockreordering.cpp ('k') | gm/textblobgeometrychange.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/textblobcolortrans.cpp
diff --git a/gm/textblobcolortrans.cpp b/gm/textblobcolortrans.cpp
index 1e7a66667a076288c46bc66e0e89a6e5102ef325..286dc77ef5ba08c3023f06f259d10fe5612ff0fc 100644
--- a/gm/textblobcolortrans.cpp
+++ b/gm/textblobcolortrans.cpp
@@ -48,7 +48,7 @@ protected:
sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset - 8);
// build
- fBlob.reset(builder.build());
+ fBlob = builder.make();
}
SkString onShortName() override {
@@ -87,7 +87,7 @@ protected:
}
private:
- SkAutoTUnref<const SkTextBlob> fBlob;
+ sk_sp<SkTextBlob> fBlob;
static constexpr int kWidth = 675;
static constexpr int kHeight = 1600;
« no previous file with comments | « gm/textblobblockreordering.cpp ('k') | gm/textblobgeometrychange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698