aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/PdfViewer/inc/SkPdfDiffEncoder.h
blob: 9acd82f56904e13189c61fae8900f4d53d566eff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright 2013 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkPdfDiffEncoder_DEFINED
#define SkPdfDiffEncoder_DEFINED

struct PdfToken;

namespace SkPdfDiffEncoder {
    /**
     * If PDF_TRACE_DIFF_IN_PNG is defined, the PDF commands so far are written
     * to a file with the difference created by using this token highlighted.
     * The file is named "/tmp/log_step_by_step/step-%i-%s.png", where %i is
     * the number of the command and %s is the name of the command. If
     * PDF_TRACE_DIFF_IN_PNG is not defined this function does nothing.
     * TODO(scroggo): Pass SkPdfContext and SkCanvas for info.
     */
    void WriteToFile(PdfToken*);
};

#endif // SkPdfDiffEncoder_DEFINED