blob: e3128f663a6191b4b96e8ddb1396a3035e9c5926 [file] [log] [blame]
edisonn@google.com131d4ee2013-06-26 17:48:12 +00001#include "SkPdfUtils.h"
edisonn@google.com571c70b2013-07-10 17:09:50 +00002
edisonn@google.com063d7072013-08-16 15:05:08 +00003bool operator !=(const SkString& first, const char* second) {
4 return !first.equals(second);
5}
6
edisonn@google.com571c70b2013-07-10 17:09:50 +00007#ifdef PDF_TRACE
8void 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
16void 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