OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |