Index: experimental/PdfViewer/src/SkPdfOps.h |
diff --git a/experimental/PdfViewer/src/SkPdfOps.h b/experimental/PdfViewer/src/SkPdfOps.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1712e208120a28be631500e9b747b19d04eabb80 |
--- /dev/null |
+++ b/experimental/PdfViewer/src/SkPdfOps.h |
@@ -0,0 +1,18 @@ |
+/* |
+ * 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 SkPdfOps_DEFINED |
+#define SkPdfOps_DEFINED |
+ |
+// Signature for all the operations available in pdf. |
+typedef SkPdfResult (*PdfOperatorRenderer)(SkPdfContext*, SkCanvas*, SkPdfTokenLooper**); |
+ |
+// FIXME (scroggo): Make a cleaner interface for this, and avoid statics and globals. |
+// Map of string to function pointer for all known draw operations. |
+extern SkTDict<PdfOperatorRenderer> gPdfOps; |
+ |
+#endif // SkPdfOps_DEFINED |