blob: 869e633933f44e713af93e7b4b1ad0e5ba7b155e [file] [log] [blame]
edisonn@google.com131d4ee2013-06-26 17:48:12 +00001#include "SkPdfUtils.h"
edisonn@google.com571c70b2013-07-10 17:09:50 +00002#include "SkPdfConfig.h"
3
4#ifdef PDF_TRACE
5void 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
13void 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