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

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

Issue 68843006: Changes to SkTDStackNester. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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
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 #ifdef PDF_REPORT 8 #ifdef PDF_REPORT
9 9
10 #include "SkPdfReporter.h" 10 #include "SkPdfReporter.h"
(...skipping 29 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfReporter.h ('k') | experimental/PdfViewer/pdfparser/native/SkPdfNativeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698