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

Unified Diff: src/utils/SkLua.cpp

Issue 1073473002: change isNestedRect to isNestedFillRect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix lua Created 5 years, 8 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/GrContext.cpp ('k') | tests/PathTest.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 84932cd23e4eb68e7def1a1fbc028227b0e0574b..11d9b2938c66afab3b6a837086a78dfdbeb58f03 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -1495,10 +1495,10 @@ static const char* dir2string(SkPath::Direction dir) {
return gStr[dir];
}
-static int lpath_isNestedRects(lua_State* L) {
+static int lpath_isNestedFillRects(lua_State* L) {
SkRect rects[2];
SkPath::Direction dirs[2];
- bool pred = get_obj<SkPath>(L, 1)->isNestedRects(rects, dirs);
+ bool pred = get_obj<SkPath>(L, 1)->isNestedFillRects(rects, dirs);
int ret_count = 1;
lua_pushboolean(L, pred);
if (pred) {
@@ -1562,7 +1562,7 @@ static const struct luaL_Reg gSkPath_Methods[] = {
{ "isConvex", lpath_isConvex },
{ "isEmpty", lpath_isEmpty },
{ "isRect", lpath_isRect },
- { "isNestedRects", lpath_isNestedRects },
+ { "isNestedFillRects", lpath_isNestedFillRects },
{ "countPoints", lpath_countPoints },
{ "reset", lpath_reset },
{ "moveTo", lpath_moveTo },
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | tests/PathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698