| 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();
|
| +};
|
|
|