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

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

Issue 77763007: Move SkPdfContext into its own files. (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
« no previous file with comments | « experimental/PdfViewer/SkPdfGraphicsState.cpp ('k') | experimental/PdfViewer/src/SkPdfContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/inc/SkPdfContext.h
diff --git a/experimental/PdfViewer/inc/SkPdfContext.h b/experimental/PdfViewer/inc/SkPdfContext.h
new file mode 100644
index 0000000000000000000000000000000000000000..48c5472b0200caf14423dd1d1c8a4760abfbcc75
--- /dev/null
+++ b/experimental/PdfViewer/inc/SkPdfContext.h
@@ -0,0 +1,30 @@
+/*
+ * 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 "SkMatrix.h"
+#include "SkTDStackNester.h"
+#include "SkPdfGraphicsState.h"
+
+class SkPdfAllocator;
+class SkPdfNativeDoc;
+class SkPdfNativeObject;
+
+/** \class SkPdfContext
+ * The context of the drawing. The document we draw from, the current stack of objects, ...
+ */
+class SkPdfContext {
+public:
+ SkTDStackNester<SkPdfNativeObject*> fObjectStack;
+ SkTDStackNester<SkPdfGraphicsState> fStateStack;
+ SkPdfGraphicsState fGraphicsState;
+ SkPdfNativeDoc* fPdfDoc;
+ SkPdfAllocator* fTmpPageAllocator;
+ SkMatrix fOriginalMatrix;
+
+ SkPdfContext(SkPdfNativeDoc* doc);
+ ~SkPdfContext();
+};
« no previous file with comments | « experimental/PdfViewer/SkPdfGraphicsState.cpp ('k') | experimental/PdfViewer/src/SkPdfContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698