blob: 7bb9c840b16344f7ef7ce743093be700de9f9987 [file] [log] [blame]
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkPdfContext_DEFINED
#define SkPdfContext_DEFINED
#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();
};
#endif // SkPdfContext_DEFINED