Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: src/utils/SkLuaCanvas.cpp

Issue 196603027: add initial scraper for dashing (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rename pushArray to pushArrayPoint Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/utils/SkLua.cpp ('k') | tools/lua/scrape_dashing.lua » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.pushArrayPoint(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
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 }
OLDNEW
« no previous file with comments | « src/utils/SkLua.cpp ('k') | tools/lua/scrape_dashing.lua » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698