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

Unified Diff: gm/textblobblockreordering.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/textblob.cpp ('k') | gm/textblobcolortrans.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/textblobblockreordering.cpp
diff --git a/gm/textblobblockreordering.cpp b/gm/textblobblockreordering.cpp
index ea90308b1f46472af0e108e587a6da3bfc16a9fe..3974aca5ab0d9795e4a2585bb4ce7f6dc16b22c9 100644
--- a/gm/textblobblockreordering.cpp
+++ b/gm/textblobblockreordering.cpp
@@ -35,7 +35,7 @@ protected:
sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset - 30);
// build
- fBlob.reset(builder.build());
+ fBlob = builder.make();
}
SkString onShortName() override {
@@ -77,7 +77,7 @@ protected:
}
private:
- SkAutoTUnref<const SkTextBlob> fBlob;
+ sk_sp<SkTextBlob> fBlob;
static constexpr int kWidth = 275;
static constexpr int kHeight = 200;
« no previous file with comments | « gm/textblob.cpp ('k') | gm/textblobcolortrans.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698