Use forward declaration more.
BUG=None
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2110033002
Review-Url: https://codereview.chromium.org/
2110033002
#include "SkData.h"
#include "SkDeflate.h"
-#include "SkStream.h"
#ifdef ZLIB_INCLUDE
#include ZLIB_INCLUDE
#ifndef SkFlate_DEFINED
#define SkFlate_DEFINED
-#include "SkTypes.h"
-
#include "SkStream.h"
/**
#include "SkJpegInfo.h"
#include "SkPDFBitmap.h"
#include "SkPDFCanon.h"
+#include "SkPDFTypes.h"
#include "SkStream.h"
#include "SkUnPreMultiply.h"
#ifndef SkPDFBitmap_DEFINED
#define SkPDFBitmap_DEFINED
-#include "SkPDFTypes.h"
+#include "SkRefCnt.h"
class SkImage;
+class SkPixelSerializer;
+class SkPDFObject;
/**
* SkPDFBitmap wraps a SkImage and serializes it as an image Xobject.
#include "SkPDFBitmap.h"
#include "SkPDFCanon.h"
#include "SkPDFFont.h"
-#include "SkPDFShader.h"
////////////////////////////////////////////////////////////////////////////////
#include "SkBitmapKey.h"
class SkPDFFont;
-class SkPaint;
-class SkImage;
/**
* The SkPDFCanon canonicalizes objects across PDF pages
#include "SkPDFDevice.h"
#include "SkAnnotationKeys.h"
+#include "SkBitmapKey.h"
#include "SkColor.h"
#include "SkColorFilter.h"
-#include "SkClipStack.h"
#include "SkDraw.h"
#include "SkGlyphCache.h"
-#include "SkPaint.h"
#include "SkPath.h"
#include "SkPathEffect.h"
#include "SkPathOps.h"
#include "SkPDFTypes.h"
#include "SkPDFUtils.h"
#include "SkRasterClip.h"
-#include "SkRect.h"
#include "SkRRect.h"
#include "SkString.h"
#include "SkSurface.h"
#define SkPDFDevice_DEFINED
#include "SkBitmap.h"
-#include "SkBitmapKey.h"
#include "SkCanvas.h"
#include "SkClipStack.h"
#include "SkData.h"
#include "SkDevice.h"
#include "SkPaint.h"
-#include "SkPath.h"
-#include "SkPicture.h"
#include "SkRect.h"
#include "SkRefCnt.h"
#include "SkStream.h"
#include "SkTDArray.h"
-#include "SkTemplates.h"
#include "SkSinglyLinkedList.h"
+class SkImageBitmap;
+class SkPath;
class SkPDFArray;
class SkPDFCanon;
class SkPDFDevice;
class SkPDFFont;
class SkPDFFormXObject;
class SkPDFGlyphSetMap;
-class SkPDFGraphicState;
class SkPDFObject;
-class SkPDFShader;
-class SkPDFStream;
class SkRRect;
/** \class SkPDFDevice
*/
#include "SkColorSpace_Base.h"
-#include "SkPDFCanon.h"
#include "SkPDFCanvas.h"
#include "SkPDFDevice.h"
#include "SkPDFDocument.h"
-#include "SkPDFFont.h"
#include "SkPDFStream.h"
#include "SkPDFUtils.h"
#include "SkStream.h"
#include "SkPDFFont.h"
#include "SkPDFFontImpl.h"
#include "SkPDFStream.h"
-#include "SkPDFTypes.h"
#include "SkPDFUtils.h"
#include "SkRefCnt.h"
#include "SkScalar.h"
#include "SkTDArray.h"
#include "SkTypeface.h"
-class SkPaint;
class SkPDFCanon;
-class SkPDFObjNumMap;
class SkPDFFont;
class SkPDFGlyphSet : SkNoncopyable {
#define SkPDFFormXObject_DEFINED
#include "SkPDFStream.h"
-#include "SkPDFTypes.h"
-#include "SkRect.h"
-#include "SkRefCnt.h"
-#include "SkString.h"
-class SkMatrix;
+class SkPDFArray;
class SkPDFDevice;
-class SkPDFObjNumMap;
+class SkPDFDict;
+struct SkRect;
/** \class SkPDFFormXObject
*/
#include "SkData.h"
+#include "SkPaint.h"
#include "SkPDFCanon.h"
#include "SkPDFFormXObject.h"
#include "SkPDFGraphicState.h"
#ifndef SkPDFGraphicState_DEFINED
#define SkPDFGraphicState_DEFINED
-#include "SkPaint.h"
#include "SkPDFStream.h"
#include "SkChecksum.h"
+class SkPaint;
class SkPDFCanon;
class SkPDFFormXObject;
#define SkPDFMetadata_DEFINED
#include "SkDocument.h"
-#include "SkTime.h"
class SkPDFObject;
*/
#include "SkPDFResourceDict.h"
+#include "SkPDFTypes.h"
#include "SkPostConfig.h"
// Sanity check that the values of enum SkPDFResourceType correspond to the
#ifndef SkPDFResourceDict_DEFINED
#define SkPDFResourceDict_DEFINED
-#include "SkPDFTypes.h"
+#include "SkRefCnt.h"
#include "SkTDArray.h"
-#include "SkTypes.h"
+
+class SkPDFDict;
+class SkPDFObject;
/** \class SkPDFResourceDict
#include "SkData.h"
#include "SkDeflate.h"
#include "SkPDFStream.h"
-#include "SkStream.h"
#include "SkStreamPriv.h"
SkPDFStream::~SkPDFStream() {}
#define SkPDFStream_DEFINED
#include "SkPDFTypes.h"
-#include "SkRefCnt.h"
#include "SkStream.h"
-#include "SkTemplates.h"
-
-class SkPDFObjNumMap;
/** \class SkPDFStream
#include "SkDeflate.h"
#include "SkPDFTypes.h"
#include "SkPDFUtils.h"
+#include "SkStream.h"
#include "SkStreamPriv.h"
////////////////////////////////////////////////////////////////////////////////
#include "SkRefCnt.h"
#include "SkScalar.h"
-#include "SkStream.h"
-#include "SkString.h"
-#include "SkTDArray.h"
#include "SkTHash.h"
#include "SkTypes.h"
class SkPDFObjNumMap;
class SkPDFObject;
class SkPDFSubstituteMap;
+class SkStreamAsset;
+class SkString;
+class SkWStream;
#ifdef SK_PDF_IMAGE_STATS
#include "SkAtomics.h"
#include "SkData.h"
#include "SkGeometry.h"
-#include "SkPaint.h"
-#include "SkPath.h"
#include "SkPDFResourceDict.h"
#include "SkPDFUtils.h"
#include "SkStream.h"
#include "SkPath.h"
class SkMatrix;
-class SkPath;
class SkPDFArray;
struct SkRect;
class SkWStream;