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

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

Issue 35543002: Revert "If the path is a rect, call drawRect to raster the geometry in SkCanvas::drawPath to get be… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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/SkDumpCanvas.cpp ('k') | src/utils/SkNWayCanvas.cpp » ('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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 AUTO_LUA("drawPoints"); 180 AUTO_LUA("drawPoints");
181 lua.pushPaint(paint, "paint"); 181 lua.pushPaint(paint, "paint");
182 } 182 }
183 183
184 void SkLuaCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { 184 void SkLuaCanvas::drawOval(const SkRect& rect, const SkPaint& paint) {
185 AUTO_LUA("drawOval"); 185 AUTO_LUA("drawOval");
186 lua.pushRect(rect, "rect"); 186 lua.pushRect(rect, "rect");
187 lua.pushPaint(paint, "paint"); 187 lua.pushPaint(paint, "paint");
188 } 188 }
189 189
190 void SkLuaCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { 190 void SkLuaCanvas::drawRect(const SkRect& rect, const SkPaint& paint) {
191 AUTO_LUA("drawRect"); 191 AUTO_LUA("drawRect");
192 lua.pushRect(rect, "rect"); 192 lua.pushRect(rect, "rect");
193 lua.pushPaint(paint, "paint"); 193 lua.pushPaint(paint, "paint");
194 } 194 }
195 195
196 void SkLuaCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { 196 void SkLuaCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) {
197 AUTO_LUA("drawRRect"); 197 AUTO_LUA("drawRRect");
198 lua.pushRRect(rrect, "rrect"); 198 lua.pushRRect(rrect, "rrect");
199 lua.pushPaint(paint, "paint"); 199 lua.pushPaint(paint, "paint");
200 } 200 }
201 201
202 void SkLuaCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { 202 void SkLuaCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
203 AUTO_LUA("drawPath"); 203 AUTO_LUA("drawPath");
204 lua.pushPath(path, "path"); 204 lua.pushPath(path, "path");
205 lua.pushPaint(paint, "paint"); 205 lua.pushPaint(paint, "paint");
206 } 206 }
207 207
208 void SkLuaCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, 208 void SkLuaCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
209 const SkPaint* paint) { 209 const SkPaint* paint) {
210 AUTO_LUA("drawBitmap"); 210 AUTO_LUA("drawBitmap");
211 if (paint) { 211 if (paint) {
212 lua.pushPaint(*paint, "paint"); 212 lua.pushPaint(*paint, "paint");
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 const SkColor colors[], SkXfermode* xmode, 280 const SkColor colors[], SkXfermode* xmode,
281 const uint16_t indices[], int indexCount, 281 const uint16_t indices[], int indexCount,
282 const SkPaint& paint) { 282 const SkPaint& paint) {
283 AUTO_LUA("drawVertices"); 283 AUTO_LUA("drawVertices");
284 lua.pushPaint(paint, "paint"); 284 lua.pushPaint(paint, "paint");
285 } 285 }
286 286
287 void SkLuaCanvas::drawData(const void* data, size_t length) { 287 void SkLuaCanvas::drawData(const void* data, size_t length) {
288 AUTO_LUA("drawData"); 288 AUTO_LUA("drawData");
289 } 289 }
OLDNEW
« no previous file with comments | « src/utils/SkDumpCanvas.cpp ('k') | src/utils/SkNWayCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698