571c70b95f
Review URL: https://codereview.chromium.org/18323019 git-svn-id: http://skia.googlecode.com/svn/trunk@9962 2bbb7eff-a529-9590-31e7-b0007b416f81
22 lines
604 B
C++
22 lines
604 B
C++
#include "SkPdfUtils.h"
|
|
#include "SkPdfConfig.h"
|
|
|
|
#ifdef PDF_TRACE
|
|
void SkTraceMatrix(const SkMatrix& matrix, const char* sz) {
|
|
printf("SkMatrix %s ", sz);
|
|
for (int i = 0 ; i < 9 ; i++) {
|
|
printf("%f ", SkScalarToDouble(matrix.get(i)));
|
|
}
|
|
printf("\n");
|
|
}
|
|
|
|
void SkTraceRect(const SkRect& rect, const char* sz) {
|
|
printf("SkRect %s ", sz);
|
|
printf("x = %f ", SkScalarToDouble(rect.x()));
|
|
printf("y = %f ", SkScalarToDouble(rect.y()));
|
|
printf("w = %f ", SkScalarToDouble(rect.width()));
|
|
printf("h = %f ", SkScalarToDouble(rect.height()));
|
|
printf("\n");
|
|
}
|
|
#endif
|