Remove unnecessary includes in src/pdf/

Use forward declaration more.

BUG=None
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2110033002

Review-Url: https://codereview.chromium.org/2110033002
This commit is contained in:
martina.kollarova 2016-06-29 05:12:31 -07:00 committed by Commit bot
parent 97660ccbd1
commit b8d6af169b
23 changed files with 21 additions and 43 deletions

View File

@ -8,7 +8,6 @@
#include "SkData.h"
#include "SkDeflate.h"
#include "SkStream.h"
#ifdef ZLIB_INCLUDE
#include ZLIB_INCLUDE

View File

@ -9,8 +9,6 @@
#ifndef SkFlate_DEFINED
#define SkFlate_DEFINED
#include "SkTypes.h"
#include "SkStream.h"
/**

View File

@ -12,6 +12,7 @@
#include "SkJpegInfo.h"
#include "SkPDFBitmap.h"
#include "SkPDFCanon.h"
#include "SkPDFTypes.h"
#include "SkStream.h"
#include "SkUnPreMultiply.h"

View File

@ -7,9 +7,11 @@
#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.

View File

@ -9,7 +9,6 @@
#include "SkPDFBitmap.h"
#include "SkPDFCanon.h"
#include "SkPDFFont.h"
#include "SkPDFShader.h"
////////////////////////////////////////////////////////////////////////////////

View File

@ -15,8 +15,6 @@
#include "SkBitmapKey.h"
class SkPDFFont;
class SkPaint;
class SkImage;
/**
* The SkPDFCanon canonicalizes objects across PDF pages

View File

@ -8,12 +8,11 @@
#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"
@ -29,7 +28,6 @@
#include "SkPDFTypes.h"
#include "SkPDFUtils.h"
#include "SkRasterClip.h"
#include "SkRect.h"
#include "SkRRect.h"
#include "SkString.h"
#include "SkSurface.h"

View File

@ -9,22 +9,20 @@
#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;
@ -33,10 +31,7 @@ class SkPDFDict;
class SkPDFFont;
class SkPDFFormXObject;
class SkPDFGlyphSetMap;
class SkPDFGraphicState;
class SkPDFObject;
class SkPDFShader;
class SkPDFStream;
class SkRRect;
/** \class SkPDFDevice

View File

@ -6,11 +6,9 @@
*/
#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"

View File

@ -15,7 +15,6 @@
#include "SkPDFFont.h"
#include "SkPDFFontImpl.h"
#include "SkPDFStream.h"
#include "SkPDFTypes.h"
#include "SkPDFUtils.h"
#include "SkRefCnt.h"
#include "SkScalar.h"

View File

@ -15,9 +15,7 @@
#include "SkTDArray.h"
#include "SkTypeface.h"
class SkPaint;
class SkPDFCanon;
class SkPDFObjNumMap;
class SkPDFFont;
class SkPDFGlyphSet : SkNoncopyable {

View File

@ -10,14 +10,11 @@
#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

View File

@ -6,6 +6,7 @@
*/
#include "SkData.h"
#include "SkPaint.h"
#include "SkPDFCanon.h"
#include "SkPDFFormXObject.h"
#include "SkPDFGraphicState.h"

View File

@ -9,10 +9,10 @@
#ifndef SkPDFGraphicState_DEFINED
#define SkPDFGraphicState_DEFINED
#include "SkPaint.h"
#include "SkPDFStream.h"
#include "SkChecksum.h"
class SkPaint;
class SkPDFCanon;
class SkPDFFormXObject;

View File

@ -9,7 +9,6 @@
#define SkPDFMetadata_DEFINED
#include "SkDocument.h"
#include "SkTime.h"
class SkPDFObject;

View File

@ -6,6 +6,7 @@
*/
#include "SkPDFResourceDict.h"
#include "SkPDFTypes.h"
#include "SkPostConfig.h"
// Sanity check that the values of enum SkPDFResourceType correspond to the

View File

@ -8,9 +8,11 @@
#ifndef SkPDFResourceDict_DEFINED
#define SkPDFResourceDict_DEFINED
#include "SkPDFTypes.h"
#include "SkRefCnt.h"
#include "SkTDArray.h"
#include "SkTypes.h"
class SkPDFDict;
class SkPDFObject;
/** \class SkPDFResourceDict

View File

@ -9,7 +9,6 @@
#include "SkData.h"
#include "SkDeflate.h"
#include "SkPDFStream.h"
#include "SkStream.h"
#include "SkStreamPriv.h"
SkPDFStream::~SkPDFStream() {}

View File

@ -10,11 +10,7 @@
#define SkPDFStream_DEFINED
#include "SkPDFTypes.h"
#include "SkRefCnt.h"
#include "SkStream.h"
#include "SkTemplates.h"
class SkPDFObjNumMap;
/** \class SkPDFStream

View File

@ -8,6 +8,7 @@
#include "SkDeflate.h"
#include "SkPDFTypes.h"
#include "SkPDFUtils.h"
#include "SkStream.h"
#include "SkStreamPriv.h"
////////////////////////////////////////////////////////////////////////////////

View File

@ -11,15 +11,15 @@
#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"

View File

@ -8,8 +8,6 @@
#include "SkData.h"
#include "SkGeometry.h"
#include "SkPaint.h"
#include "SkPath.h"
#include "SkPDFResourceDict.h"
#include "SkPDFUtils.h"
#include "SkStream.h"

View File

@ -13,7 +13,6 @@
#include "SkPath.h"
class SkMatrix;
class SkPath;
class SkPDFArray;
struct SkRect;
class SkWStream;