| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 /////////////////////////////////////////////////////////////////////////////// | 74 /////////////////////////////////////////////////////////////////////////////// |
| 75 | 75 |
| 76 SkLuaCanvas::SkLuaCanvas(int width, int height, lua_State* L, const char func[]) | 76 SkLuaCanvas::SkLuaCanvas(int width, int height, lua_State* L, const char func[]) |
| 77 : INHERITED(width, height) | 77 : INHERITED(width, height) |
| 78 , fL(L) | 78 , fL(L) |
| 79 , fFunc(func) { | 79 , fFunc(func) { |
| 80 } | 80 } |
| 81 | 81 |
| 82 SkLuaCanvas::~SkLuaCanvas() {} | 82 SkLuaCanvas::~SkLuaCanvas() {} |
| 83 | 83 |
| 84 void SkLuaCanvas::willSave(SaveFlags flags) { | 84 void SkLuaCanvas::willSave() { |
| 85 AUTO_LUA("save"); | 85 AUTO_LUA("save"); |
| 86 this->INHERITED::willSave(flags); | 86 this->INHERITED::willSave(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 SkCanvas::SaveLayerStrategy SkLuaCanvas::willSaveLayer(const SkRect* bounds, con
st SkPaint* paint, | 89 SkCanvas::SaveLayerStrategy SkLuaCanvas::willSaveLayer(const SkRect* bounds, con
st SkPaint* paint, |
| 90 SaveFlags flags) { | 90 SaveFlags flags) { |
| 91 AUTO_LUA("saveLayer"); | 91 AUTO_LUA("saveLayer"); |
| 92 if (bounds) { | 92 if (bounds) { |
| 93 lua.pushRect(*bounds, "bounds"); | 93 lua.pushRect(*bounds, "bounds"); |
| 94 } | 94 } |
| 95 if (paint) { | 95 if (paint) { |
| 96 lua.pushPaint(*paint, "paint"); | 96 lua.pushPaint(*paint, "paint"); |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 const SkColor colors[], SkXfermode* xmode, | 279 const SkColor colors[], SkXfermode* xmode, |
| 280 const uint16_t indices[], int indexCount, | 280 const uint16_t indices[], int indexCount, |
| 281 const SkPaint& paint) { | 281 const SkPaint& paint) { |
| 282 AUTO_LUA("drawVertices"); | 282 AUTO_LUA("drawVertices"); |
| 283 lua.pushPaint(paint, "paint"); | 283 lua.pushPaint(paint, "paint"); |
| 284 } | 284 } |
| 285 | 285 |
| 286 void SkLuaCanvas::drawData(const void* data, size_t length) { | 286 void SkLuaCanvas::drawData(const void* data, size_t length) { |
| 287 AUTO_LUA("drawData"); | 287 AUTO_LUA("drawData"); |
| 288 } | 288 } |
| OLD | NEW |