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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // and report where the error was triggered | 117 // and report where the error was triggered |
118 SkPdfReport(kCodeWarning_SkPdfIssueSeverity, kNYI_SkPdfIssue, token.fKey
word, NULL, | 118 SkPdfReport(kCodeWarning_SkPdfIssueSeverity, kNYI_SkPdfIssue, token.fKey
word, NULL, |
119 fPdfContext); | 119 fPdfContext); |
120 return kIgnoreError_SkPdfResult; | 120 return kIgnoreError_SkPdfResult; |
121 } | 121 } |
122 return kOK_SkPdfResult; | 122 return kOK_SkPdfResult; |
123 } | 123 } |
124 | 124 |
125 void PdfMainLooper::loop() { | 125 void PdfMainLooper::loop() { |
126 PdfToken token; | 126 PdfToken token; |
127 // readToken defined in SkPdfTokenLooper.h | 127 while (fTokenizer->readToken(&token, true)) { |
128 while (readToken(fTokenizer, &token)) { | |
129 this->consumeToken(token); | 128 this->consumeToken(token); |
130 } | 129 } |
131 } | 130 } |
OLD | NEW |