Index: src/utils/SkLuaCanvas.cpp |
diff --git a/src/utils/SkLuaCanvas.cpp b/src/utils/SkLuaCanvas.cpp |
index a3160af800af936e5b63f1dbf5fd011c0dcdac30..3883924c0dc0572c64f585ba70413486c4f57d19 100644 |
--- a/src/utils/SkLuaCanvas.cpp |
+++ b/src/utils/SkLuaCanvas.cpp |
@@ -179,6 +179,16 @@ void SkLuaCanvas::onDrawOval(const SkRect& rect, const SkPaint& paint) { |
lua.pushPaint(paint, "paint"); |
} |
+void SkLuaCanvas::onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, |
+ bool useCenter, const SkPaint& paint) { |
+ AUTO_LUA("drawArc"); |
+ lua.pushRect(rect, "rect"); |
+ lua.pushScalar(startAngle, "startAngle"); |
+ lua.pushScalar(sweepAngle, "sweepAngle"); |
+ lua.pushBool(useCenter, "useCenter"); |
+ lua.pushPaint(paint, "paint"); |
+} |
+ |
void SkLuaCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { |
AUTO_LUA("drawRect"); |
lua.pushRect(rect, "rect"); |