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

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

Issue 26912005: mode code cleanup (100c / l, comments) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 2 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/SkPdfReporter.cpp ('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 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPdfUtils_DEFINED 8 #ifndef SkPdfUtils_DEFINED
9 #define SkPdfUtils_DEFINED 9 #define SkPdfUtils_DEFINED
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 }; 52 };
53 53
54 SkMatrix SkMatrixFromPdfMatrix(double array[6]); 54 SkMatrix SkMatrixFromPdfMatrix(double array[6]);
55 55
56 // TODO(edisonn): hack to make code generation simpler. Alternatively we can upd ate the 56 // TODO(edisonn): hack to make code generation simpler. Alternatively we can upd ate the
57 // generate_code.py not to rely on != operator 57 // generate_code.py not to rely on != operator
58 bool operator !=(const SkString& first, const char* second); 58 bool operator !=(const SkString& first, const char* second);
59 59
60 SkMatrix SkMatrixFromPdfArray(SkPdfArray* pdfArray); 60 SkMatrix SkMatrixFromPdfArray(SkPdfArray* pdfArray);
61 61
62 SkPdfResult doType3Char(SkPdfContext* pdfContext, SkCanvas* canvas, const SkPdfN ativeObject* skobj, SkRect bBox, SkMatrix matrix, double textSize); 62 SkPdfResult doType3Char(SkPdfContext* pdfContext, SkCanvas* canvas, const SkPdfN ativeObject* skobj,
63 SkRect bBox, SkMatrix matrix, double textSize);
63 64
64 //////////////////////////////////////////////////////////////////////////////// //////////////////// 65 //////////////////////////////////////////////////////////////////////////////// ////////////////////
65 // 66 //
66 // TRACE functions 67 // TRACE functions
67 // 68 //
68 #ifdef PDF_TRACE 69 #ifdef PDF_TRACE
69 void SkTraceMatrix(const SkMatrix& matrix, const char* sz); 70 void SkTraceMatrix(const SkMatrix& matrix, const char* sz);
70 void SkTraceRect(const SkRect& rect, const char* sz); 71 void SkTraceRect(const SkRect& rect, const char* sz);
71 #else 72 #else
72 #define SkTraceMatrix(a,b) 73 #define SkTraceMatrix(a,b)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 110
110 #else 111 #else
111 #define TRACE_COMMENT(ch) 112 #define TRACE_COMMENT(ch)
112 #define TRACE_TK(ch) 113 #define TRACE_TK(ch)
113 #define TRACE_NAME(start,end) 114 #define TRACE_NAME(start,end)
114 #define TRACE_STRING(start,end) 115 #define TRACE_STRING(start,end)
115 #define TRACE_HEXSTRING(start,end) 116 #define TRACE_HEXSTRING(start,end)
116 #endif 117 #endif
117 118
118 #endif // SkPdfUtils_DEFINED 119 #endif // SkPdfUtils_DEFINED
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfReporter.cpp ('k') | experimental/PdfViewer/SkTrackDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698