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

Unified Diff: gm/textblobshader.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/textblobrandomfont.cpp ('k') | gm/textblobtransforms.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/textblobshader.cpp
diff --git a/gm/textblobshader.cpp b/gm/textblobshader.cpp
index bb0e03c4f3c848fb5ac8051fa0391428c8c4cf5e..acb6436d1affc12824f5e58a43f28d420870887e 100644
--- a/gm/textblobshader.cpp
+++ b/gm/textblobshader.cpp
@@ -56,7 +56,7 @@ protected:
run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount);
}
- fBlob.reset(builder.build());
+ fBlob = builder.make();
SkColor colors[2];
colors[0] = SK_ColorRED;
@@ -102,9 +102,9 @@ protected:
}
private:
- SkTDArray<uint16_t> fGlyphs;
- SkAutoTUnref<const SkTextBlob> fBlob;
- sk_sp<SkShader> fShader;
+ SkTDArray<uint16_t> fGlyphs;
+ sk_sp<SkTextBlob> fBlob;
+ sk_sp<SkShader> fShader;
typedef skiagm::GM INHERITED;
};
« no previous file with comments | « gm/textblobrandomfont.cpp ('k') | gm/textblobtransforms.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698