| OLD | NEW |
| 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 "SkLuaCanvas.h" | 8 #include "SkLuaCanvas.h" |
| 9 #include "SkLua.h" | 9 #include "SkLua.h" |
| 10 | 10 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 169 } |
| 170 | 170 |
| 171 void SkLuaCanvas::drawPaint(const SkPaint& paint) { | 171 void SkLuaCanvas::drawPaint(const SkPaint& paint) { |
| 172 AUTO_LUA("drawPaint"); | 172 AUTO_LUA("drawPaint"); |
| 173 lua.pushPaint(paint, "paint"); | 173 lua.pushPaint(paint, "paint"); |
| 174 } | 174 } |
| 175 | 175 |
| 176 void SkLuaCanvas::drawPoints(PointMode mode, size_t count, | 176 void SkLuaCanvas::drawPoints(PointMode mode, size_t count, |
| 177 const SkPoint pts[], const SkPaint& paint) { | 177 const SkPoint pts[], const SkPaint& paint) { |
| 178 AUTO_LUA("drawPoints"); | 178 AUTO_LUA("drawPoints"); |
| 179 lua.pushArray(pts, count, "points"); |
| 179 lua.pushPaint(paint, "paint"); | 180 lua.pushPaint(paint, "paint"); |
| 180 } | 181 } |
| 181 | 182 |
| 182 void SkLuaCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { | 183 void SkLuaCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { |
| 183 AUTO_LUA("drawOval"); | 184 AUTO_LUA("drawOval"); |
| 184 lua.pushRect(rect, "rect"); | 185 lua.pushRect(rect, "rect"); |
| 185 lua.pushPaint(paint, "paint"); | 186 lua.pushPaint(paint, "paint"); |
| 186 } | 187 } |
| 187 | 188 |
| 188 void SkLuaCanvas::drawRect(const SkRect& rect, const SkPaint& paint) { | 189 void SkLuaCanvas::drawRect(const SkRect& rect, const SkPaint& paint) { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 const SkColor colors[], SkXfermode* xmode, | 287 const SkColor colors[], SkXfermode* xmode, |
| 287 const uint16_t indices[], int indexCount, | 288 const uint16_t indices[], int indexCount, |
| 288 const SkPaint& paint) { | 289 const SkPaint& paint) { |
| 289 AUTO_LUA("drawVertices"); | 290 AUTO_LUA("drawVertices"); |
| 290 lua.pushPaint(paint, "paint"); | 291 lua.pushPaint(paint, "paint"); |
| 291 } | 292 } |
| 292 | 293 |
| 293 void SkLuaCanvas::drawData(const void* data, size_t length) { | 294 void SkLuaCanvas::drawData(const void* data, size_t length) { |
| 294 AUTO_LUA("drawData"); | 295 AUTO_LUA("drawData"); |
| 295 } | 296 } |
| OLD | NEW |