edisonn@google.com | cf2cfa1 | 2013-08-21 16:31:37 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2013 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 8 | #include "SkPdfUtils.h" |
edisonn@google.com | 571c70b | 2013-07-10 17:09:50 +0000 | [diff] [blame] | 9 | |
edisonn@google.com | 063d707 | 2013-08-16 15:05:08 +0000 | [diff] [blame] | 10 | bool operator !=(const SkString& first, const char* second) { |
| 11 | return !first.equals(second); |
| 12 | } |
| 13 | |
edisonn@google.com | 571c70b | 2013-07-10 17:09:50 +0000 | [diff] [blame] | 14 | #ifdef PDF_TRACE |
| 15 | void SkTraceMatrix(const SkMatrix& matrix, const char* sz) { |
| 16 | printf("SkMatrix %s ", sz); |
| 17 | for (int i = 0 ; i < 9 ; i++) { |
| 18 | printf("%f ", SkScalarToDouble(matrix.get(i))); |
| 19 | } |
| 20 | printf("\n"); |
| 21 | } |
| 22 | |
| 23 | void SkTraceRect(const SkRect& rect, const char* sz) { |
| 24 | printf("SkRect %s ", sz); |
| 25 | printf("x = %f ", SkScalarToDouble(rect.x())); |
| 26 | printf("y = %f ", SkScalarToDouble(rect.y())); |
| 27 | printf("w = %f ", SkScalarToDouble(rect.width())); |
| 28 | printf("h = %f ", SkScalarToDouble(rect.height())); |
| 29 | printf("\n"); |
| 30 | } |
| 31 | #endif |