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

Unified Diff: gm/largeglyphblur.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 | « bench/TextBlobBench.cpp ('k') | gm/lcdoverlap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/largeglyphblur.cpp
diff --git a/gm/largeglyphblur.cpp b/gm/largeglyphblur.cpp
index 235c7cc5adb98e5eaa2d7cae9dbb37ce1bd5816f..19d390be541b5a9ec7757d04a7e8d7474699dade 100644
--- a/gm/largeglyphblur.cpp
+++ b/gm/largeglyphblur.cpp
@@ -32,9 +32,9 @@ DEF_SIMPLE_GM(largeglyphblur, canvas, 1920, 600) {
sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, 0);
- SkAutoTUnref<const SkTextBlob> blob(builder.build());
- canvas->drawTextBlob(blob.get(), 10, 200, blurPaint);
- canvas->drawTextBlob(blob.get(), 10, 200, paint);
+ sk_sp<SkTextBlob> blob(builder.make());
+ canvas->drawTextBlob(blob, 10, 200, blurPaint);
+ canvas->drawTextBlob(blob, 10, 200, paint);
size_t len = strlen(text);
canvas->drawText(text, len, 10, 500, blurPaint);
« no previous file with comments | « bench/TextBlobBench.cpp ('k') | gm/lcdoverlap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698