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

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

Issue 23258004: pdfviewer: code cleanup - remove STL usage (Closed) 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/generate_code.py » ('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 2
3 bool operator !=(const SkString& first, const char* second) {
4 return !first.equals(second);
5 }
6
3 #ifdef PDF_TRACE 7 #ifdef PDF_TRACE
4 void SkTraceMatrix(const SkMatrix& matrix, const char* sz) { 8 void SkTraceMatrix(const SkMatrix& matrix, const char* sz) {
5 printf("SkMatrix %s ", sz); 9 printf("SkMatrix %s ", sz);
6 for (int i = 0 ; i < 9 ; i++) { 10 for (int i = 0 ; i < 9 ; i++) {
7 printf("%f ", SkScalarToDouble(matrix.get(i))); 11 printf("%f ", SkScalarToDouble(matrix.get(i)));
8 } 12 }
9 printf("\n"); 13 printf("\n");
10 } 14 }
11 15
12 void SkTraceRect(const SkRect& rect, const char* sz) { 16 void SkTraceRect(const SkRect& rect, const char* sz) {
13 printf("SkRect %s ", sz); 17 printf("SkRect %s ", sz);
14 printf("x = %f ", SkScalarToDouble(rect.x())); 18 printf("x = %f ", SkScalarToDouble(rect.x()));
15 printf("y = %f ", SkScalarToDouble(rect.y())); 19 printf("y = %f ", SkScalarToDouble(rect.y()));
16 printf("w = %f ", SkScalarToDouble(rect.width())); 20 printf("w = %f ", SkScalarToDouble(rect.width()));
17 printf("h = %f ", SkScalarToDouble(rect.height())); 21 printf("h = %f ", SkScalarToDouble(rect.height()));
18 printf("\n"); 22 printf("\n");
19 } 23 }
20 #endif 24 #endif
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfUtils.h ('k') | experimental/PdfViewer/generate_code.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698