diff options
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-20 22:33:39 +0000 |
---|---|---|
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-20 22:33:39 +0000 |
commit | d906702f7812807d79eeaba65acff62235990b64 (patch) | |
tree | 2080735fbc6678a41dc2516c67ddcd6c1912d670 /experimental/PdfViewer/inc | |
parent | b1de123336246ad970e8a593267c37cc3be8105c (diff) |
Move SkPdfContext into its own files.
Otherwise, the class is unchanged.
Review URL: https://codereview.chromium.org/77763007
git-svn-id: http://skia.googlecode.com/svn/trunk@12330 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/PdfViewer/inc')
-rw-r--r-- | experimental/PdfViewer/inc/SkPdfContext.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/experimental/PdfViewer/inc/SkPdfContext.h b/experimental/PdfViewer/inc/SkPdfContext.h new file mode 100644 index 0000000000..48c5472b02 --- /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(); +}; |