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

Unified Diff: gm/lcdoverlap.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/largeglyphblur.cpp ('k') | gm/mixedtextblobs.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/lcdoverlap.cpp
diff --git a/gm/lcdoverlap.cpp b/gm/lcdoverlap.cpp
index de159e19acef10497ae6e8a95938d23788ad0060..623d74622d4d938d9b87476b2e973519ff35ad34 100644
--- a/gm/lcdoverlap.cpp
+++ b/gm/lcdoverlap.cpp
@@ -44,7 +44,7 @@ protected:
paint.setSubpixelText(true);
paint.setLCDRenderText(true);
sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, 0);
- fBlob.reset(builder.build());
+ fBlob = builder.make();
}
SkISize onISize() override { return SkISize::Make(kWidth, kHeight); }
@@ -90,7 +90,7 @@ protected:
private:
SkScalar fTextHeight;
- SkAutoTUnref<const SkTextBlob> fBlob;
+ sk_sp<SkTextBlob> fBlob;
typedef skiagm::GM INHERITED;
};
« no previous file with comments | « gm/largeglyphblur.cpp ('k') | gm/mixedtextblobs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698