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

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

Issue 23361009: pdfviewer: code cleanup - add licence on files, make replace __DEFINE__foo with foo_DEFINED to matc… (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/SkTrackDevice.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
1 #include "SkPdfUtils.h" 8 #include "SkPdfUtils.h"
2 9
3 bool operator !=(const SkString& first, const char* second) { 10 bool operator !=(const SkString& first, const char* second) {
4 return !first.equals(second); 11 return !first.equals(second);
5 } 12 }
6 13
7 #ifdef PDF_TRACE 14 #ifdef PDF_TRACE
8 void SkTraceMatrix(const SkMatrix& matrix, const char* sz) { 15 void SkTraceMatrix(const SkMatrix& matrix, const char* sz) {
9 printf("SkMatrix %s ", sz); 16 printf("SkMatrix %s ", sz);
10 for (int i = 0 ; i < 9 ; i++) { 17 for (int i = 0 ; i < 9 ; i++) {
11 printf("%f ", SkScalarToDouble(matrix.get(i))); 18 printf("%f ", SkScalarToDouble(matrix.get(i)));
12 } 19 }
13 printf("\n"); 20 printf("\n");
14 } 21 }
15 22
16 void SkTraceRect(const SkRect& rect, const char* sz) { 23 void SkTraceRect(const SkRect& rect, const char* sz) {
17 printf("SkRect %s ", sz); 24 printf("SkRect %s ", sz);
18 printf("x = %f ", SkScalarToDouble(rect.x())); 25 printf("x = %f ", SkScalarToDouble(rect.x()));
19 printf("y = %f ", SkScalarToDouble(rect.y())); 26 printf("y = %f ", SkScalarToDouble(rect.y()));
20 printf("w = %f ", SkScalarToDouble(rect.width())); 27 printf("w = %f ", SkScalarToDouble(rect.width()));
21 printf("h = %f ", SkScalarToDouble(rect.height())); 28 printf("h = %f ", SkScalarToDouble(rect.height()));
22 printf("\n"); 29 printf("\n");
23 } 30 }
24 #endif 31 #endif
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfUtils.h ('k') | experimental/PdfViewer/SkTrackDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698