OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 | 9 |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 } | 557 } |
558 | 558 |
559 static const char* gFillTypeStrs[] = { | 559 static const char* gFillTypeStrs[] = { |
560 "kWinding_FillType", | 560 "kWinding_FillType", |
561 "kEvenOdd_FillType", | 561 "kEvenOdd_FillType", |
562 "kInverseWinding_FillType", | 562 "kInverseWinding_FillType", |
563 "kInverseEvenOdd_FillType" | 563 "kInverseEvenOdd_FillType" |
564 }; | 564 }; |
565 | 565 |
566 static const char* gOpStrs[] = { | 566 static const char* gOpStrs[] = { |
567 "kDifference_PathOp", | 567 "kDifference_SkPathOp", |
568 "kIntersect_PathOp", | 568 "kIntersect_SkPathOp", |
569 "kUnion_PathOp", | 569 "kUnion_SkPathOp", |
570 "kXor_PathOp", | 570 "kXor_PathOp", |
571 "kReverseDifference_PathOp", | 571 "kReverseDifference_SkPathOp", |
572 }; | 572 }; |
573 | 573 |
574 static const char kHTML4SpaceIndent[] = " "; | 574 static const char kHTML4SpaceIndent[] = " "; |
575 | 575 |
576 void SkDebugCanvas::outputScalar(SkScalar num) { | 576 void SkDebugCanvas::outputScalar(SkScalar num) { |
577 if (num == (int) num) { | 577 if (num == (int) num) { |
578 fClipStackData.appendf("%d", (int) num); | 578 fClipStackData.appendf("%d", (int) num); |
579 } else { | 579 } else { |
580 SkString str; | 580 SkString str; |
581 str.printf("%1.9g", num); | 581 str.printf("%1.9g", num); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 } | 673 } |
674 | 674 |
675 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 675 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
676 if (fCalledAddStackData) { | 676 if (fCalledAddStackData) { |
677 fClipStackData.appendf("<br>"); | 677 fClipStackData.appendf("<br>"); |
678 addPathData(devPath, "pathOut"); | 678 addPathData(devPath, "pathOut"); |
679 return true; | 679 return true; |
680 } | 680 } |
681 return false; | 681 return false; |
682 } | 682 } |
OLD | NEW |