Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: experimental/PdfViewer/inc/SkPdfDiffEncoder.h

Issue 80463005: Separate and update PDF_DIFF_TRACE_IN_PNG (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | experimental/PdfViewer/inc/SkPdfTokenLooper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/inc/SkPdfDiffEncoder.h
diff --git a/experimental/PdfViewer/inc/SkPdfDiffEncoder.h b/experimental/PdfViewer/inc/SkPdfDiffEncoder.h
new file mode 100644
index 0000000000000000000000000000000000000000..9acd82f56904e13189c61fae8900f4d53d566eff
--- /dev/null
+++ b/experimental/PdfViewer/inc/SkPdfDiffEncoder.h
@@ -0,0 +1,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
« no previous file with comments | « no previous file | experimental/PdfViewer/inc/SkPdfTokenLooper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698