edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 1 | #include "SkPdfUtils.h" |
edisonn@google.com | 571c70b | 2013-07-10 17:09:50 +0000 | [diff] [blame^] | 2 | #include "SkPdfConfig.h" |
| 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 |