OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
| 8 #ifndef SkPdfContext_DEFINED |
| 9 #define SkPdfContext_DEFINED |
| 10 |
8 #include "SkMatrix.h" | 11 #include "SkMatrix.h" |
9 #include "SkTDStackNester.h" | 12 #include "SkTDStackNester.h" |
10 #include "SkPdfGraphicsState.h" | 13 #include "SkPdfGraphicsState.h" |
11 | 14 |
12 class SkPdfAllocator; | 15 class SkPdfAllocator; |
13 class SkPdfNativeDoc; | 16 class SkPdfNativeDoc; |
14 class SkPdfNativeObject; | 17 class SkPdfNativeObject; |
15 | 18 |
16 /** \class SkPdfContext | 19 /** \class SkPdfContext |
17 * The context of the drawing. The document we draw from, the current stack of
objects, ... | 20 * The context of the drawing. The document we draw from, the current stack of
objects, ... |
18 */ | 21 */ |
19 class SkPdfContext { | 22 class SkPdfContext { |
20 public: | 23 public: |
21 SkTDStackNester<SkPdfNativeObject*> fObjectStack; | 24 SkTDStackNester<SkPdfNativeObject*> fObjectStack; |
22 SkTDStackNester<SkPdfGraphicsState> fStateStack; | 25 SkTDStackNester<SkPdfGraphicsState> fStateStack; |
23 SkPdfGraphicsState fGraphicsState; | 26 SkPdfGraphicsState fGraphicsState; |
24 SkPdfNativeDoc* fPdfDoc; | 27 SkPdfNativeDoc* fPdfDoc; |
25 SkPdfAllocator* fTmpPageAllocator; | 28 SkPdfAllocator* fTmpPageAllocator; |
26 SkMatrix fOriginalMatrix; | 29 SkMatrix fOriginalMatrix; |
27 | 30 |
28 SkPdfContext(SkPdfNativeDoc* doc); | 31 SkPdfContext(SkPdfNativeDoc* doc); |
29 ~SkPdfContext(); | 32 ~SkPdfContext(); |
30 }; | 33 }; |
| 34 #endif // SkPdfContext_DEFINED |
OLD | NEW |