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

Unified Diff: src/utils/SkLua.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 | « src/gpu/text/GrStencilAndCoverTextContext.cpp ('k') | src/utils/SkTextBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkLua.cpp
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index 8ea9eee5fc14aee672f4f53c26bf1e8b23d0eedc..117cb8af838aea6349ad13151ad7e97cd049292e 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -2076,8 +2076,7 @@ static int lsk_newTextBlob(lua_State* L) {
box.setText(text, strlen(text), paint);
SkScalar newBottom;
- SkAutoTUnref<SkTextBlob> blob(box.snapshotTextBlob(&newBottom));
- push_ref<SkTextBlob>(L, blob);
+ push_ref<SkTextBlob>(L, box.snapshotTextBlob(&newBottom));
SkLua(L).pushScalar(newBottom);
return 2;
}
« no previous file with comments | « src/gpu/text/GrStencilAndCoverTextContext.cpp ('k') | src/utils/SkTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698