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

Side by Side Diff: src/utils/SkDumpCanvas.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, 1 month 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/SkDeferredCanvas.cpp ('k') | src/utils/SkLuaCanvas.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkDumpCanvas.h" 9 #include "SkDumpCanvas.h"
10 10
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 this->dump(kDrawPoints_Verb, &paint, "drawPoints(%s, %d)", toString(mode), 316 this->dump(kDrawPoints_Verb, &paint, "drawPoints(%s, %d)", toString(mode),
317 count); 317 count);
318 } 318 }
319 319
320 void SkDumpCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { 320 void SkDumpCanvas::drawOval(const SkRect& rect, const SkPaint& paint) {
321 SkString str; 321 SkString str;
322 toString(rect, &str); 322 toString(rect, &str);
323 this->dump(kDrawOval_Verb, &paint, "drawOval(%s)", str.c_str()); 323 this->dump(kDrawOval_Verb, &paint, "drawOval(%s)", str.c_str());
324 } 324 }
325 325
326 void SkDumpCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { 326 void SkDumpCanvas::drawRect(const SkRect& rect, const SkPaint& paint) {
327 SkString str; 327 SkString str;
328 toString(rect, &str); 328 toString(rect, &str);
329 this->dump(kDrawRect_Verb, &paint, "drawRect(%s)", str.c_str()); 329 this->dump(kDrawRect_Verb, &paint, "drawRect(%s)", str.c_str());
330 } 330 }
331 331
332 void SkDumpCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { 332 void SkDumpCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) {
333 SkString str; 333 SkString str;
334 toString(rrect, &str); 334 toString(rrect, &str);
335 this->dump(kDrawRRect_Verb, &paint, "drawRRect(%s)", str.c_str()); 335 this->dump(kDrawRRect_Verb, &paint, "drawRRect(%s)", str.c_str());
336 } 336 }
337 337
338 void SkDumpCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { 338 void SkDumpCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
339 SkString str; 339 SkString str;
340 toString(path, &str); 340 toString(path, &str);
341 this->dump(kDrawPath_Verb, &paint, "drawPath(%s)", str.c_str()); 341 this->dump(kDrawPath_Verb, &paint, "drawPath(%s)", str.c_str());
342 } 342 }
343 343
344 void SkDumpCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, 344 void SkDumpCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
345 const SkPaint* paint) { 345 const SkPaint* paint) {
346 SkString str; 346 SkString str;
347 bitmap.toString(&str); 347 bitmap.toString(&str);
348 this->dump(kDrawBitmap_Verb, paint, "drawBitmap(%s %g %g)", str.c_str(), 348 this->dump(kDrawBitmap_Verb, paint, "drawBitmap(%s %g %g)", str.c_str(),
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 518
519 /////////////////////////////////////////////////////////////////////////////// 519 ///////////////////////////////////////////////////////////////////////////////
520 520
521 static void dumpToDebugf(const char text[], void*) { 521 static void dumpToDebugf(const char text[], void*) {
522 SkDebugf("%s\n", text); 522 SkDebugf("%s\n", text);
523 } 523 }
524 524
525 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {} 525 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {}
526 526
527 #endif 527 #endif
OLDNEW
« no previous file with comments | « src/utils/SkDeferredCanvas.cpp ('k') | src/utils/SkLuaCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698