2013-08-21 16:31:37 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2013 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2013-06-26 17:48:12 +00:00
|
|
|
#include "SkPdfUtils.h"
|
2013-07-10 17:09:50 +00:00
|
|
|
|
2013-08-16 15:05:08 +00:00
|
|
|
bool operator !=(const SkString& first, const char* second) {
|
|
|
|
return !first.equals(second);
|
|
|
|
}
|
|
|
|
|
2013-07-10 17:09:50 +00:00
|
|
|
#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
|