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

Side by Side Diff: src/utils/SkLua.cpp

Issue 478533002: Fix typo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkLua.h" 8 #include "SkLua.h"
9 9
10 #if SK_SUPPORT_GPU 10 #if SK_SUPPORT_GPU
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 if (!first) { 1150 if (!first) {
1151 result.append(" "); 1151 result.append(" ");
1152 } 1152 }
1153 result.append("cubic"); 1153 result.append("cubic");
1154 SkDEBUGCODE(segmentMasks &= ~SkPath::kCubic_SegmentMask;) 1154 SkDEBUGCODE(segmentMasks &= ~SkPath::kCubic_SegmentMask;)
1155 } 1155 }
1156 SkASSERT(0 == segmentMasks); 1156 SkASSERT(0 == segmentMasks);
1157 return result; 1157 return result;
1158 } 1158 }
1159 1159
1160 static int lpath_getSegementTypes(lua_State* L) { 1160 static int lpath_getSegmentTypes(lua_State* L) {
1161 uint32_t segMasks = get_obj<SkPath>(L, 1)->getSegmentMasks(); 1161 uint32_t segMasks = get_obj<SkPath>(L, 1)->getSegmentMasks();
1162 SkLua(L).pushString(segment_masks_to_str(segMasks)); 1162 SkLua(L).pushString(segment_masks_to_str(segMasks));
1163 return 1; 1163 return 1;
1164 } 1164 }
1165 1165
1166 static int lpath_isConvex(lua_State* L) { 1166 static int lpath_isConvex(lua_State* L) {
1167 bool isConvex = SkPath::kConvex_Convexity == get_obj<SkPath>(L, 1)->getConve xity(); 1167 bool isConvex = SkPath::kConvex_Convexity == get_obj<SkPath>(L, 1)->getConve xity();
1168 SkLua(L).pushBool(isConvex); 1168 SkLua(L).pushBool(isConvex);
1169 return 1; 1169 return 1;
1170 } 1170 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 } 1250 }
1251 1251
1252 static int lpath_gc(lua_State* L) { 1252 static int lpath_gc(lua_State* L) {
1253 get_obj<SkPath>(L, 1)->~SkPath(); 1253 get_obj<SkPath>(L, 1)->~SkPath();
1254 return 0; 1254 return 0;
1255 } 1255 }
1256 1256
1257 static const struct luaL_Reg gSkPath_Methods[] = { 1257 static const struct luaL_Reg gSkPath_Methods[] = {
1258 { "getBounds", lpath_getBounds }, 1258 { "getBounds", lpath_getBounds },
1259 { "getFillType", lpath_getFillType }, 1259 { "getFillType", lpath_getFillType },
1260 { "getSegmentTypes", lpath_getSegementTypes }, 1260 { "getSegmentTypes", lpath_getSegmentTypes },
1261 { "isConvex", lpath_isConvex }, 1261 { "isConvex", lpath_isConvex },
1262 { "isEmpty", lpath_isEmpty }, 1262 { "isEmpty", lpath_isEmpty },
1263 { "isRect", lpath_isRect }, 1263 { "isRect", lpath_isRect },
1264 { "isNestedRects", lpath_isNestedRects }, 1264 { "isNestedRects", lpath_isNestedRects },
1265 { "countPoints", lpath_countPoints }, 1265 { "countPoints", lpath_countPoints },
1266 { "reset", lpath_reset }, 1266 { "reset", lpath_reset },
1267 { "moveTo", lpath_moveTo }, 1267 { "moveTo", lpath_moveTo },
1268 { "lineTo", lpath_lineTo }, 1268 { "lineTo", lpath_lineTo },
1269 { "quadTo", lpath_quadTo }, 1269 { "quadTo", lpath_quadTo },
1270 { "cubicTo", lpath_cubicTo }, 1270 { "cubicTo", lpath_cubicTo },
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 REG_CLASS(L, SkShader); 1500 REG_CLASS(L, SkShader);
1501 REG_CLASS(L, SkTypeface); 1501 REG_CLASS(L, SkTypeface);
1502 REG_CLASS(L, SkMatrix); 1502 REG_CLASS(L, SkMatrix);
1503 } 1503 }
1504 1504
1505 extern "C" int luaopen_skia(lua_State* L); 1505 extern "C" int luaopen_skia(lua_State* L);
1506 extern "C" int luaopen_skia(lua_State* L) { 1506 extern "C" int luaopen_skia(lua_State* L) {
1507 SkLua::Load(L); 1507 SkLua::Load(L);
1508 return 0; 1508 return 0;
1509 } 1509 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698