| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 void SkLuaCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src
, | 217 void SkLuaCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src
, |
| 218 const SkRect& dst, const SkPaint* paint, | 218 const SkRect& dst, const SkPaint* paint, |
| 219 DrawBitmapRectFlags flags) { | 219 DrawBitmapRectFlags flags) { |
| 220 AUTO_LUA("drawBitmapRectToRect"); | 220 AUTO_LUA("drawBitmapRectToRect"); |
| 221 if (paint) { | 221 if (paint) { |
| 222 lua.pushPaint(*paint, "paint"); | 222 lua.pushPaint(*paint, "paint"); |
| 223 } | 223 } |
| 224 } | 224 } |
| 225 | 225 |
| 226 void SkLuaCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | |
| 227 const SkPaint* paint) { | |
| 228 AUTO_LUA("drawBitmapMatrix"); | |
| 229 if (paint) { | |
| 230 lua.pushPaint(*paint, "paint"); | |
| 231 } | |
| 232 } | |
| 233 | |
| 234 void SkLuaCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, | 226 void SkLuaCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, |
| 235 const SkPaint* paint) { | 227 const SkPaint* paint) { |
| 236 AUTO_LUA("drawSprite"); | 228 AUTO_LUA("drawSprite"); |
| 237 if (paint) { | 229 if (paint) { |
| 238 lua.pushPaint(*paint, "paint"); | 230 lua.pushPaint(*paint, "paint"); |
| 239 } | 231 } |
| 240 } | 232 } |
| 241 | 233 |
| 242 void SkLuaCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, Sk
Scalar y, | 234 void SkLuaCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, Sk
Scalar y, |
| 243 const SkPaint& paint) { | 235 const SkPaint& paint) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 const SkColor colors[], SkXfermode* xmode, | 281 const SkColor colors[], SkXfermode* xmode, |
| 290 const uint16_t indices[], int indexCount, | 282 const uint16_t indices[], int indexCount, |
| 291 const SkPaint& paint) { | 283 const SkPaint& paint) { |
| 292 AUTO_LUA("drawVertices"); | 284 AUTO_LUA("drawVertices"); |
| 293 lua.pushPaint(paint, "paint"); | 285 lua.pushPaint(paint, "paint"); |
| 294 } | 286 } |
| 295 | 287 |
| 296 void SkLuaCanvas::drawData(const void* data, size_t length) { | 288 void SkLuaCanvas::drawData(const void* data, size_t length) { |
| 297 AUTO_LUA("drawData"); | 289 AUTO_LUA("drawData"); |
| 298 } | 290 } |
| OLD | NEW |