OLD | NEW |
1 #include "SkPdfUtils.h" | 1 #include "SkPdfUtils.h" |
2 | 2 |
| 3 bool operator !=(const SkString& first, const char* second) { |
| 4 return !first.equals(second); |
| 5 } |
| 6 |
3 #ifdef PDF_TRACE | 7 #ifdef PDF_TRACE |
4 void SkTraceMatrix(const SkMatrix& matrix, const char* sz) { | 8 void SkTraceMatrix(const SkMatrix& matrix, const char* sz) { |
5 printf("SkMatrix %s ", sz); | 9 printf("SkMatrix %s ", sz); |
6 for (int i = 0 ; i < 9 ; i++) { | 10 for (int i = 0 ; i < 9 ; i++) { |
7 printf("%f ", SkScalarToDouble(matrix.get(i))); | 11 printf("%f ", SkScalarToDouble(matrix.get(i))); |
8 } | 12 } |
9 printf("\n"); | 13 printf("\n"); |
10 } | 14 } |
11 | 15 |
12 void SkTraceRect(const SkRect& rect, const char* sz) { | 16 void SkTraceRect(const SkRect& rect, const char* sz) { |
13 printf("SkRect %s ", sz); | 17 printf("SkRect %s ", sz); |
14 printf("x = %f ", SkScalarToDouble(rect.x())); | 18 printf("x = %f ", SkScalarToDouble(rect.x())); |
15 printf("y = %f ", SkScalarToDouble(rect.y())); | 19 printf("y = %f ", SkScalarToDouble(rect.y())); |
16 printf("w = %f ", SkScalarToDouble(rect.width())); | 20 printf("w = %f ", SkScalarToDouble(rect.width())); |
17 printf("h = %f ", SkScalarToDouble(rect.height())); | 21 printf("h = %f ", SkScalarToDouble(rect.height())); |
18 printf("\n"); | 22 printf("\n"); |
19 } | 23 } |
20 #endif | 24 #endif |
OLD | NEW |