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

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: Created 7 years, 1 month 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
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..118f9c9f77156a799ff051526909207dadac5b7a
--- /dev/null
+++ b/experimental/PdfViewer/inc/SkPdfDiffEncoder.h
@@ -0,0 +1,23 @@
+/*
+ * 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;
+
+class SkPdfDiffEncoder {
+public:
+ // If PDF_TRACE_DIFF_IN_PNG is defined, the difference created by
+ // using this token is written to a file named
+ // "/tmp/log_step_by_step/step-%i-%s.png". Otherwise this function does
+ // nothing.
+ // TODO(scroggo): Pass SkPdfContext and SkCanvas for info.
+ static void WriteToFile(PdfToken*);
mtklein 2013/11/22 14:46:12 Do you anticipate this class will become more than
scroggo 2013/11/22 15:47:16 reed@ encouraged me to use a class in another inst
+};
+
+#endif // SkPdfDiffEncoder_DEFINED

Powered by Google App Engine
This is Rietveld 408576698