OLD | NEW |
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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fY, | 483 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fY, |
484 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fX, | 484 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fX, |
485 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fY, | 485 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fY, |
486 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fX, | 486 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fX, |
487 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fY, | 487 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fY, |
488 colors[0], colors[1], colors[2], colors[3], | 488 colors[0], colors[1], colors[2], colors[3], |
489 texCoords[0].x(), texCoords[0].y(), texCoords[1].x(), texCoords[1]
.y(), | 489 texCoords[0].x(), texCoords[0].y(), texCoords[1].x(), texCoords[1]
.y(), |
490 texCoords[2].x(), texCoords[2].y(), texCoords[3].x(), texCoords[3]
.y()); | 490 texCoords[2].x(), texCoords[2].y(), texCoords[3].x(), texCoords[3]
.y()); |
491 } | 491 } |
492 | 492 |
493 void SkDumpCanvas::beginCommentGroup(const char* description) { | |
494 this->dump(kBeginCommentGroup_Verb, NULL, "beginCommentGroup(%s)", descripti
on); | |
495 } | |
496 | |
497 void SkDumpCanvas::addComment(const char* kywd, const char* value) { | |
498 this->dump(kAddComment_Verb, NULL, "addComment(%s, %s)", kywd, value); | |
499 } | |
500 | |
501 void SkDumpCanvas::endCommentGroup() { | |
502 this->dump(kEndCommentGroup_Verb, NULL, "endCommentGroup()"); | |
503 } | |
504 | |
505 /////////////////////////////////////////////////////////////////////////////// | 493 /////////////////////////////////////////////////////////////////////////////// |
506 /////////////////////////////////////////////////////////////////////////////// | 494 /////////////////////////////////////////////////////////////////////////////// |
507 | 495 |
508 SkFormatDumper::SkFormatDumper(void (*proc)(const char*, void*), void* refcon) { | 496 SkFormatDumper::SkFormatDumper(void (*proc)(const char*, void*), void* refcon) { |
509 fProc = proc; | 497 fProc = proc; |
510 fRefcon = refcon; | 498 fRefcon = refcon; |
511 } | 499 } |
512 | 500 |
513 static void appendPtr(SkString* str, const void* ptr, const char name[]) { | 501 static void appendPtr(SkString* str, const void* ptr, const char name[]) { |
514 if (ptr) { | 502 if (ptr) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 549 |
562 /////////////////////////////////////////////////////////////////////////////// | 550 /////////////////////////////////////////////////////////////////////////////// |
563 | 551 |
564 static void dumpToDebugf(const char text[], void*) { | 552 static void dumpToDebugf(const char text[], void*) { |
565 SkDebugf("%s\n", text); | 553 SkDebugf("%s\n", text); |
566 } | 554 } |
567 | 555 |
568 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {} | 556 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {} |
569 | 557 |
570 #endif | 558 #endif |
OLD | NEW |