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 #include "SkPdfContext.h" | 8 #include "SkPdfContext.h" |
9 #include "SkPdfNativeDoc.h" | 9 #include "SkPdfNativeDoc.h" |
10 #include "SkPdfReporter.h" | 10 #include "SkPdfReporter.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // and report where the error was triggered | 119 // and report where the error was triggered |
120 SkPdfReport(kCodeWarning_SkPdfIssueSeverity, kNYI_SkPdfIssue, token.fKey
word, NULL, | 120 SkPdfReport(kCodeWarning_SkPdfIssueSeverity, kNYI_SkPdfIssue, token.fKey
word, NULL, |
121 fPdfContext); | 121 fPdfContext); |
122 return kIgnoreError_SkPdfResult; | 122 return kIgnoreError_SkPdfResult; |
123 } | 123 } |
124 return kOK_SkPdfResult; | 124 return kOK_SkPdfResult; |
125 } | 125 } |
126 | 126 |
127 void PdfMainLooper::loop() { | 127 void PdfMainLooper::loop() { |
128 PdfToken token; | 128 PdfToken token; |
129 // readToken defined in SkPdfTokenLooper.h | 129 while (fTokenizer->readToken(&token, true)) { |
130 // FIXME (scroggo): Remove readToken (which just calls fTokenizer->readToken
, plus draws | |
131 // some debugging info with PDF_DIFF_TRACE_IN_PNG) | |
132 while (readToken(fTokenizer, &token)) { | |
133 this->consumeToken(token); | 130 this->consumeToken(token); |
134 } | 131 } |
135 } | 132 } |
OLD | NEW |