scroggo@google.com | 5092adc | 2013-12-02 20:22:31 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef SkPdfDiffEncoder_DEFINED |
| 9 | #define SkPdfDiffEncoder_DEFINED |
| 10 | |
| 11 | struct PdfToken; |
| 12 | |
| 13 | namespace SkPdfDiffEncoder { |
| 14 | /** |
| 15 | * If PDF_TRACE_DIFF_IN_PNG is defined, the PDF commands so far are written |
| 16 | * to a file with the difference created by using this token highlighted. |
| 17 | * The file is named "/tmp/log_step_by_step/step-%i-%s.png", where %i is |
| 18 | * the number of the command and %s is the name of the command. If |
| 19 | * PDF_TRACE_DIFF_IN_PNG is not defined this function does nothing. |
| 20 | * TODO(scroggo): Pass SkPdfContext and SkCanvas for info. |
| 21 | */ |
| 22 | void WriteToFile(PdfToken*); |
| 23 | }; |
| 24 | |
| 25 | #endif // SkPdfDiffEncoder_DEFINED |