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