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 #ifdef PDF_REPORT | 8 #ifdef PDF_REPORT |
9 | 9 |
10 #include "SkPdfReporter.h" | 10 #include "SkPdfReporter.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 SkPdfContext* pdfContext) { | 40 SkPdfContext* pdfContext) { |
41 if (sev >= kIgnoreError_SkPdfIssueSeverity) { | 41 if (sev >= kIgnoreError_SkPdfIssueSeverity) { |
42 printf("%s: %s\n", getSeverityName(sev), context); | 42 printf("%s: %s\n", getSeverityName(sev), context); |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 void SkPdfReportIf(bool report, | 46 void SkPdfReportIf(bool report, |
47 SkPdfIssueSeverity sev, SkPdfIssue issue, | 47 SkPdfIssueSeverity sev, SkPdfIssue issue, |
48 const char* context, | 48 const char* context, |
49 const SkPdfNativeObject* obj, | 49 const SkPdfNativeObject* obj, |
50 SkPdfContext* pdfContext) { | 50 SkPdfContext* pdfContext) { |
51 if (!report) { | 51 if (!report) { |
52 return; | 52 return; |
53 } | 53 } |
54 SkPdfReport(sev, issue, context, obj, pdfContext); | 54 SkPdfReport(sev, issue, context, obj, pdfContext); |
55 } | 55 } |
56 | 56 |
57 void SkPdfReportUnexpectedType(SkPdfIssueSeverity sev, | 57 void SkPdfReportUnexpectedType(SkPdfIssueSeverity sev, |
58 const char* context, | 58 const char* context, |
59 const SkPdfNativeObject* obj, | 59 const SkPdfNativeObject* obj, |
60 int anyOfTypes, SkPdfContext* pdfContext) { | 60 int anyOfTypes, SkPdfContext* pdfContext) { |
61 if (sev >= kIgnoreError_SkPdfIssueSeverity) { | 61 if (sev >= kIgnoreError_SkPdfIssueSeverity) { |
62 printf("%s: %s\n", getSeverityName(sev), context); | 62 printf("%s: %s\n", getSeverityName(sev), context); |
63 } | 63 } |
64 } | 64 } |
65 | 65 |
66 #endif // PDF_REPORT | 66 #endif // PDF_REPORT |
OLD | NEW |