Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: experimental/PdfViewer/SkPdfUtils.cpp

Issue 23163007: pdfviewer: make pdfviewer compile on mac Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « experimental/PdfViewer/SkPdfUtils.h ('k') | experimental/PdfViewer/chop_transparency_main.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "SkPdfUtils.h" 1 #include "SkPdfUtils.h"
2 #include "SkPdfConfig.h"
3 2
4 #ifdef PDF_TRACE 3 #ifdef PDF_TRACE
5 void SkTraceMatrix(const SkMatrix& matrix, const char* sz) { 4 void SkTraceMatrix(const SkMatrix& matrix, const char* sz) {
6 printf("SkMatrix %s ", sz); 5 printf("SkMatrix %s ", sz);
7 for (int i = 0 ; i < 9 ; i++) { 6 for (int i = 0 ; i < 9 ; i++) {
8 printf("%f ", SkScalarToDouble(matrix.get(i))); 7 printf("%f ", SkScalarToDouble(matrix.get(i)));
9 } 8 }
10 printf("\n"); 9 printf("\n");
11 } 10 }
12 11
13 void SkTraceRect(const SkRect& rect, const char* sz) { 12 void SkTraceRect(const SkRect& rect, const char* sz) {
14 printf("SkRect %s ", sz); 13 printf("SkRect %s ", sz);
15 printf("x = %f ", SkScalarToDouble(rect.x())); 14 printf("x = %f ", SkScalarToDouble(rect.x()));
16 printf("y = %f ", SkScalarToDouble(rect.y())); 15 printf("y = %f ", SkScalarToDouble(rect.y()));
17 printf("w = %f ", SkScalarToDouble(rect.width())); 16 printf("w = %f ", SkScalarToDouble(rect.width()));
18 printf("h = %f ", SkScalarToDouble(rect.height())); 17 printf("h = %f ", SkScalarToDouble(rect.height()));
19 printf("\n"); 18 printf("\n");
20 } 19 }
21 #endif 20 #endif
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfUtils.h ('k') | experimental/PdfViewer/chop_transparency_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698