Index: src/utils/SkLuaCanvas.cpp |
diff --git a/src/utils/SkLuaCanvas.cpp b/src/utils/SkLuaCanvas.cpp |
index 0903ee8c89a706ecec8d872a05ade62fc3c2fc3f..8fe1aa2bbfa4c0faca8dd3e128c47fe93572f697 100644 |
--- a/src/utils/SkLuaCanvas.cpp |
+++ b/src/utils/SkLuaCanvas.cpp |
@@ -268,6 +268,15 @@ void SkLuaCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const Sk |
lua.pushPaint(paint, "paint"); |
} |
+void SkLuaCanvas::onDrawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, |
+ const SkPaint &paint) { |
+ AUTO_LUA("drawTextBlob"); |
+ lua.pushTextBlob(blob, "blob"); |
+ lua.pushScalar(x, "x"); |
+ lua.pushScalar(y, "y"); |
+ lua.pushPaint(paint, "paint"); |
+} |
+ |
void SkLuaCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, |
const SkPaint* paint) { |
AUTO_LUA("drawPicture"); |