| 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fY, | 450 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fY, |
| 451 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fX, | 451 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fX, |
| 452 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fY, | 452 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fY, |
| 453 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fX, | 453 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fX, |
| 454 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fY, | 454 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fY, |
| 455 colors[0], colors[1], colors[2], colors[3], | 455 colors[0], colors[1], colors[2], colors[3], |
| 456 texCoords[0].x(), texCoords[0].y(), texCoords[1].x(), texCoords[1]
.y(), | 456 texCoords[0].x(), texCoords[0].y(), texCoords[1].x(), texCoords[1]
.y(), |
| 457 texCoords[2].x(), texCoords[2].y(), texCoords[3].x(), texCoords[3]
.y()); | 457 texCoords[2].x(), texCoords[2].y(), texCoords[3].x(), texCoords[3]
.y()); |
| 458 } | 458 } |
| 459 | 459 |
| 460 void SkDumpCanvas::drawData(const void* data, size_t length) { | |
| 461 // this->dump(kDrawData_Verb, NULL, "drawData(%d)", length); | |
| 462 this->dump(kDrawData_Verb, NULL, "drawData(%d) %.*s", length, | |
| 463 SkTMin<size_t>(length, 64), data); | |
| 464 } | |
| 465 | |
| 466 void SkDumpCanvas::beginCommentGroup(const char* description) { | 460 void SkDumpCanvas::beginCommentGroup(const char* description) { |
| 467 this->dump(kBeginCommentGroup_Verb, NULL, "beginCommentGroup(%s)", descripti
on); | 461 this->dump(kBeginCommentGroup_Verb, NULL, "beginCommentGroup(%s)", descripti
on); |
| 468 } | 462 } |
| 469 | 463 |
| 470 void SkDumpCanvas::addComment(const char* kywd, const char* value) { | 464 void SkDumpCanvas::addComment(const char* kywd, const char* value) { |
| 471 this->dump(kAddComment_Verb, NULL, "addComment(%s, %s)", kywd, value); | 465 this->dump(kAddComment_Verb, NULL, "addComment(%s, %s)", kywd, value); |
| 472 } | 466 } |
| 473 | 467 |
| 474 void SkDumpCanvas::endCommentGroup() { | 468 void SkDumpCanvas::endCommentGroup() { |
| 475 this->dump(kEndCommentGroup_Verb, NULL, "endCommentGroup()"); | 469 this->dump(kEndCommentGroup_Verb, NULL, "endCommentGroup()"); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 | 528 |
| 535 /////////////////////////////////////////////////////////////////////////////// | 529 /////////////////////////////////////////////////////////////////////////////// |
| 536 | 530 |
| 537 static void dumpToDebugf(const char text[], void*) { | 531 static void dumpToDebugf(const char text[], void*) { |
| 538 SkDebugf("%s\n", text); | 532 SkDebugf("%s\n", text); |
| 539 } | 533 } |
| 540 | 534 |
| 541 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {} | 535 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {} |
| 542 | 536 |
| 543 #endif | 537 #endif |
| OLD | NEW |