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

Unified Diff: experimental/PdfViewer/SkPdfGraphicsState.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/SkPdfFont.h ('k') | experimental/PdfViewer/SkPdfGraphicsState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/SkPdfGraphicsState.h
diff --git a/experimental/PdfViewer/SkPdfGraphicsState.h b/experimental/PdfViewer/SkPdfGraphicsState.h
index 00bfeef109161376e788edc0c5c38e8e14ff8543..029633d6e1f9172ce568c617fb919f367aac63bf 100644
--- a/experimental/PdfViewer/SkPdfGraphicsState.h
+++ b/experimental/PdfViewer/SkPdfGraphicsState.h
@@ -12,12 +12,8 @@
#include "SkPaint.h"
#include "SkPdfConfig.h"
#include "SkPdfUtils.h"
-#include "SkTDStackNester.h"
-class SkPdfAllocator;
class SkPdfFont;
-class SkPdfDoc;
-class SkPdfNativeDoc;
class SkPdfNativeObject;
class SkPdfResourceDictionary;
class SkPdfSoftMaskDictionary;
@@ -80,7 +76,7 @@ public:
}
};
-/** \class SkTDStackNester
+/**
* Operates on stroking or non-stroking properties.
*/
struct SkPdfGraphicsState {
@@ -355,20 +351,4 @@ smoothness number (PDF 1.3) The precision with which col
void applyGraphicsState(SkPaint* paint, bool stroking);
};
-/** \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();
-};
-
#endif // SkPdfGraphicsState_DEFINED
« no previous file with comments | « experimental/PdfViewer/SkPdfFont.h ('k') | experimental/PdfViewer/SkPdfGraphicsState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698