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 | |
edisonn@google.com | 063d707 | 2013-08-16 15:05:08 +0000 | [diff] [blame^] | 3 | bool operator !=(const SkString& first, const char* second) { |
| 4 | return !first.equals(second); |
| 5 | } |
| 6 | |
edisonn@google.com | 571c70b | 2013-07-10 17:09:50 +0000 | [diff] [blame] | 7 | #ifdef PDF_TRACE |
| 8 | void SkTraceMatrix(const SkMatrix& matrix, const char* sz) { |
| 9 | printf("SkMatrix %s ", sz); |
| 10 | for (int i = 0 ; i < 9 ; i++) { |
| 11 | printf("%f ", SkScalarToDouble(matrix.get(i))); |
| 12 | } |
| 13 | printf("\n"); |
| 14 | } |
| 15 | |
| 16 | void SkTraceRect(const SkRect& rect, const char* sz) { |
| 17 | printf("SkRect %s ", sz); |
| 18 | printf("x = %f ", SkScalarToDouble(rect.x())); |
| 19 | printf("y = %f ", SkScalarToDouble(rect.y())); |
| 20 | printf("w = %f ", SkScalarToDouble(rect.width())); |
| 21 | printf("h = %f ", SkScalarToDouble(rect.height())); |
| 22 | printf("\n"); |
| 23 | } |
| 24 | #endif |