| 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 SkPdfTokenLooper_DEFINED | 8 #ifndef SkPdfTokenLooper_DEFINED |
| 9 #define SkPdfTokenLooper_DEFINED | 9 #define SkPdfTokenLooper_DEFINED |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual void loop() = 0; | 35 virtual void loop() = 0; |
| 36 | 36 |
| 37 void setUp(SkPdfTokenLooper* parent) { | 37 void setUp(SkPdfTokenLooper* parent) { |
| 38 fParent = parent; | 38 fParent = parent; |
| 39 fTokenizer = parent->fTokenizer; | 39 fTokenizer = parent->fTokenizer; |
| 40 fPdfContext = parent->fPdfContext; | 40 fPdfContext = parent->fPdfContext; |
| 41 fCanvas = parent->fCanvas; | 41 fCanvas = parent->fCanvas; |
| 42 } | 42 } |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 // Calls SkPdfNativeTokenizer::readToken, and also does debugging help. | |
| 46 // TODO(edisonn): Pass SkPdfContext and SkCanvas only with the define for instru
mentation. | |
| 47 // FIXME (scroggo): This calls tokenizer->readToken(). The rest of its functiona
lity should | |
| 48 // be moved to a debugging file. | |
| 49 bool readToken(SkPdfNativeTokenizer*, PdfToken*); | |
| 50 | |
| 51 #endif // SkPdfTokenLooper_DEFINED | 45 #endif // SkPdfTokenLooper_DEFINED |
| OLD | NEW |