aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkLua.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2017-08-08 15:23:47 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-08 20:11:53 +0000
commit26308e1757d46fe553c46e2b2b19689a60ecc7c5 (patch)
treed303973b5e276778b7246f5fb91efd3803c38c97 /src/utils/SkLua.cpp
parent5a625e08f05157c1519012d8d04942c8f7606ba8 (diff)
Remove last uses of SkTypeface::style() in Skia.
The Lua typeface.getStyle now returns SkFontStyle. Dumping a glyph cache entry is now more accurate. SkTypeface::MakeFromTypeface now does a more accurate check. Change-Id: I6150636c8c674353bd0eed4d95aa0794d3919c39 Reviewed-on: https://skia-review.googlesource.com/32200 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/utils/SkLua.cpp')
-rw-r--r--src/utils/SkLua.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index 413a207114..445a5a8b95 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -1802,7 +1802,7 @@ static int ltypeface_getFamilyName(lua_State* L) {
}
static int ltypeface_getStyle(lua_State* L) {
- lua_pushnumber(L, (double)get_ref<SkTypeface>(L, 1)->style());
+ push_obj(L, get_ref<SkTypeface>(L, 1)->fontStyle());
return 1;
}