change isNestedRect to isNestedFillRect
R=reed@google.com, bsalomon@google.com
Let isNested(Fill)Rect return true if drawn path describes filled
rectangles.
Review URL: https://codereview.chromium.org/1073473002
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index 84932cd..11d9b29 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -1495,10 +1495,10 @@
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 @@
{ "isConvex", lpath_isConvex },
{ "isEmpty", lpath_isEmpty },
{ "isRect", lpath_isRect },
- { "isNestedRects", lpath_isNestedRects },
+ { "isNestedFillRects", lpath_isNestedFillRects },
{ "countPoints", lpath_countPoints },
{ "reset", lpath_reset },
{ "moveTo", lpath_moveTo },