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

Unified Diff: experimental/PdfViewer/SkPdfBasics.cpp

Issue 19793011: (upload draf code for backup) pdfviewer: improve memory, son't allocate extra buffers, and put the … (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months 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 | « experimental/PdfViewer/SkPdfBasics.h ('k') | experimental/PdfViewer/SkPdfConfig.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/SkPdfBasics.cpp
===================================================================
--- experimental/PdfViewer/SkPdfBasics.cpp (revision 10235)
+++ experimental/PdfViewer/SkPdfBasics.cpp (working copy)
@@ -0,0 +1,12 @@
+#include "SkPdfBasics.h"
+#include "SkPdfNativeTokenizer.h"
+
+PdfContext::PdfContext(SkNativeParsedPDF* doc)
+ : fPdfDoc(doc)
+ , fTmpPageAllocator(new SkPdfAllocator()) {
+}
+
+PdfContext::~PdfContext() {
+ delete fTmpPageAllocator;
+}
+
« no previous file with comments | « experimental/PdfViewer/SkPdfBasics.h ('k') | experimental/PdfViewer/SkPdfConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698