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

Side by Side Diff: experimental/PdfViewer/inc/SkPdfContext.h

Issue 79723002: Ifdef guard for SkPdfContext. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698