Index: experimental/PdfViewer/src/SkPdfContext.cpp |
diff --git a/experimental/PdfViewer/src/SkPdfContext.cpp b/experimental/PdfViewer/src/SkPdfContext.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2ce01e75fabee85aaf47bc1d214c6fcac7c46452 |
--- /dev/null |
+++ b/experimental/PdfViewer/src/SkPdfContext.cpp |
@@ -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. |
+ */ |
+ |
+#include "SkPdfContext.h" |
+#include "SkPdfNativeTokenizer.h" |
+ |
+SkPdfContext::SkPdfContext(SkPdfNativeDoc* doc) |
+ : fPdfDoc(doc) |
+ , fTmpPageAllocator(new SkPdfAllocator()) { |
+} |
+ |
+SkPdfContext::~SkPdfContext() { |
+ delete fTmpPageAllocator; |
+} |