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

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

Issue 2257023003: Plumb drawArc to SkDevice (Closed) Base URL: https://chromium.googlesource.com/skia.git@distance
Patch Set: Address comments Created 4 years, 4 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
« 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 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 "SkData.h" 8 #include "SkData.h"
9 #include "SkDumpCanvas.h" 9 #include "SkDumpCanvas.h"
10 #include "SkPatchUtils.h" 10 #include "SkPatchUtils.h"
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 this->dump(kDrawPoints_Verb, &paint, "drawPoints(%s, %d)", toString(mode), 301 this->dump(kDrawPoints_Verb, &paint, "drawPoints(%s, %d)", toString(mode),
302 count); 302 count);
303 } 303 }
304 304
305 void SkDumpCanvas::onDrawOval(const SkRect& rect, const SkPaint& paint) { 305 void SkDumpCanvas::onDrawOval(const SkRect& rect, const SkPaint& paint) {
306 SkString str; 306 SkString str;
307 toString(rect, &str); 307 toString(rect, &str);
308 this->dump(kDrawOval_Verb, &paint, "drawOval(%s)", str.c_str()); 308 this->dump(kDrawOval_Verb, &paint, "drawOval(%s)", str.c_str());
309 } 309 }
310 310
311 void SkDumpCanvas::onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar s weepAngle,
312 bool useCenter, const SkPaint& paint) {
313 SkString str;
314 toString(rect, &str);
315 this->dump(kDrawArc_Verb, &paint, "drawArc(%s, %g, %g, %d)", str.c_str(), st artAngle,
316 sweepAngle, useCenter);
317 }
318
311 void SkDumpCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { 319 void SkDumpCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) {
312 SkString str; 320 SkString str;
313 toString(rect, &str); 321 toString(rect, &str);
314 this->dump(kDrawRect_Verb, &paint, "drawRect(%s)", str.c_str()); 322 this->dump(kDrawRect_Verb, &paint, "drawRect(%s)", str.c_str());
315 } 323 }
316 324
317 void SkDumpCanvas::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { 325 void SkDumpCanvas::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) {
318 SkString str; 326 SkString str;
319 toString(rrect, &str); 327 toString(rrect, &str);
320 this->dump(kDrawDRRect_Verb, &paint, "drawRRect(%s)", str.c_str()); 328 this->dump(kDrawDRRect_Verb, &paint, "drawRRect(%s)", str.c_str());
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 fProc(msg.c_str(), fRefcon); 560 fProc(msg.c_str(), fRefcon);
553 } 561 }
554 562
555 /////////////////////////////////////////////////////////////////////////////// 563 ///////////////////////////////////////////////////////////////////////////////
556 564
557 static void dumpToDebugf(const char text[], void*) { 565 static void dumpToDebugf(const char text[], void*) {
558 SkDebugf("%s\n", text); 566 SkDebugf("%s\n", text);
559 } 567 }
560 568
561 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, nullptr) {} 569 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, nullptr) {}
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