diff options
author | bungeman <bungeman@google.com> | 2015-08-05 13:57:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-05 13:57:49 -0700 |
commit | d3ebb48320cf1b7e969974673e4bd7743816985e (patch) | |
tree | e04b7777f0292dacf074563762c1f648328f74d7 /src/core | |
parent | 59cd36765c10f6451f72ffde446b9ae8ce5599c8 (diff) |
IWYU: 'core' target, files starting A-C.
TBR=reed@google.com
Verbal lgtm, does not change API.
Committed: https://skia.googlesource.com/skia/+/7403d87db8e43d4c2b5b25ac22a0ebc22bd09d69
Review URL: https://codereview.chromium.org/1265033002
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkAdvancedTypefaceMetrics.cpp | 2 | ||||
-rw-r--r-- | src/core/SkAnnotation.cpp | 4 | ||||
-rw-r--r-- | src/core/SkBBHFactory.cpp | 2 | ||||
-rw-r--r-- | src/core/SkBitmap.cpp | 20 | ||||
-rw-r--r-- | src/core/SkBitmapDevice.cpp | 8 | ||||
-rw-r--r-- | src/core/SkBitmapFilter.cpp | 14 | ||||
-rw-r--r-- | src/core/SkBitmapFilter.h | 4 | ||||
-rw-r--r-- | src/core/SkBitmapHeap.cpp | 3 | ||||
-rw-r--r-- | src/core/SkBitmapHeap.h | 7 | ||||
-rw-r--r-- | src/core/SkBitmapScaler.cpp | 6 | ||||
-rw-r--r-- | src/core/SkBlitter.cpp | 1 | ||||
-rw-r--r-- | src/core/SkBlitter.h | 14 | ||||
-rw-r--r-- | src/core/SkBuffer.cpp | 4 | ||||
-rw-r--r-- | src/core/SkBuffer.h | 1 | ||||
-rw-r--r-- | src/core/SkCachedData.cpp | 1 | ||||
-rw-r--r-- | src/core/SkCachedData.h | 1 | ||||
-rw-r--r-- | src/core/SkCanvas.cpp | 9 | ||||
-rw-r--r-- | src/core/SkColor.cpp | 3 | ||||
-rw-r--r-- | src/core/SkColorFilter.cpp | 5 | ||||
-rw-r--r-- | src/core/SkMaskFilter.cpp | 1 | ||||
-rw-r--r-- | src/core/SkMiniRecorder.cpp | 1 | ||||
-rw-r--r-- | src/core/SkPictureImageGenerator.cpp | 1 |
22 files changed, 60 insertions, 52 deletions
diff --git a/src/core/SkAdvancedTypefaceMetrics.cpp b/src/core/SkAdvancedTypefaceMetrics.cpp index f9b25dc96a..81e98f3613 100644 --- a/src/core/SkAdvancedTypefaceMetrics.cpp +++ b/src/core/SkAdvancedTypefaceMetrics.cpp @@ -16,7 +16,7 @@ #if defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) // forward declare structs needed for getAdvanceData() template for freetype -struct FT_FaceRec; +struct FT_FaceRec_; typedef struct FT_FaceRec_* FT_Face; #endif diff --git a/src/core/SkAnnotation.cpp b/src/core/SkAnnotation.cpp index bddff64db8..aa7a02af4f 100644 --- a/src/core/SkAnnotation.cpp +++ b/src/core/SkAnnotation.cpp @@ -7,10 +7,10 @@ #include "SkAnnotation.h" #include "SkData.h" +#include "SkPaint.h" +#include "SkPoint.h" #include "SkReadBuffer.h" #include "SkWriteBuffer.h" -#include "SkPoint.h" -#include "SkStream.h" SkAnnotation::SkAnnotation(const char key[], SkData* value) : fKey(key) { if (NULL == value) { diff --git a/src/core/SkBBHFactory.cpp b/src/core/SkBBHFactory.cpp index ce5026ca70..a4c7f4f81a 100644 --- a/src/core/SkBBHFactory.cpp +++ b/src/core/SkBBHFactory.cpp @@ -6,7 +6,9 @@ */ #include "SkBBHFactory.h" +#include "SkRect.h" #include "SkRTree.h" +#include "SkScalar.h" SkBBoxHierarchy* SkRTreeFactory::operator()(const SkRect& bounds) const { SkScalar aspectRatio = bounds.width() / bounds.height(); diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp index aa26bdcab3..97b0db6f20 100644 --- a/src/core/SkBitmap.cpp +++ b/src/core/SkBitmap.cpp @@ -1,4 +1,3 @@ - /* * Copyright 2008 The Android Open Source Project * @@ -6,23 +5,22 @@ * found in the LICENSE file. */ - #include "SkAtomics.h" #include "SkBitmap.h" #include "SkColorPriv.h" -#include "SkDither.h" -#include "SkFlattenable.h" -#include "SkImagePriv.h" +#include "SkData.h" +#include "SkFilterQuality.h" #include "SkMallocPixelRef.h" #include "SkMask.h" -#include "SkPackBits.h" +#include "SkMath.h" #include "SkPixelRef.h" #include "SkReadBuffer.h" +#include "SkRect.h" +#include "SkScalar.h" #include "SkUnPreMultiply.h" -#include "SkUtils.h" -#include "SkValidationUtils.h" #include "SkWriteBuffer.h" -#include <new> + +#include <string.h> static bool reset_return_false(SkBitmap* bm) { bm->reset(); @@ -749,9 +747,6 @@ bool SkBitmap::extractSubset(SkBitmap* result, const SkIRect& subset) const { /////////////////////////////////////////////////////////////////////////////// -#include "SkCanvas.h" -#include "SkPaint.h" - bool SkBitmap::canCopyTo(SkColorType dstColorType) const { const SkColorType srcCT = this->colorType(); @@ -1221,6 +1216,7 @@ void SkBitmap::validate() const { #endif #ifndef SK_IGNORE_TO_STRING +#include "SkString.h" void SkBitmap::toString(SkString* str) const { static const char* gColorTypeNames[kLastEnum_SkColorType + 1] = { diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp index 9da43d8c9c..dfe1756c4c 100644 --- a/src/core/SkBitmapDevice.cpp +++ b/src/core/SkBitmapDevice.cpp @@ -8,10 +8,16 @@ #include "SkBitmapDevice.h" #include "SkConfig8888.h" #include "SkDraw.h" +#include "SkMatrix.h" +#include "SkPaint.h" +#include "SkPath.h" #include "SkPixelRef.h" -#include "SkRasterClip.h" +#include "SkPixmap.h" #include "SkShader.h" #include "SkSurface.h" +#include "SkXfermode.h" + +class SkColorTable; #define CHECK_FOR_ANNOTATION(paint) \ do { if (paint.getAnnotation()) { return; } } while (0) diff --git a/src/core/SkBitmapFilter.cpp b/src/core/SkBitmapFilter.cpp index 82494d9bbe..8c44e9f1fd 100644 --- a/src/core/SkBitmapFilter.cpp +++ b/src/core/SkBitmapFilter.cpp @@ -5,17 +5,11 @@ * found in the LICENSE file. */ -#include "SkErrorInternals.h" -#include "SkConvolver.h" -#include "SkBitmapProcState.h" -#include "SkBitmap.h" -#include "SkColor.h" -#include "SkColorPriv.h" -#include "SkConvolver.h" -#include "SkUnPreMultiply.h" -#include "SkShader.h" +#include "SkBitmapFilter.h" #include "SkRTConf.h" -#include "SkMath.h" +#include "SkTypes.h" + +#include <string.h> // These are the per-scanline callbacks that are used when we must resort to // resampling an image as it is blitted. Typically these are used only when diff --git a/src/core/SkBitmapFilter.h b/src/core/SkBitmapFilter.h index 93b552efd7..eb327d716c 100644 --- a/src/core/SkBitmapFilter.h +++ b/src/core/SkBitmapFilter.h @@ -1,4 +1,3 @@ - /* * Copyright 2013 Google Inc. * @@ -6,11 +5,12 @@ * found in the LICENSE file. */ - #ifndef SkBitmapFilter_DEFINED #define SkBitmapFilter_DEFINED +#include "SkFixed.h" #include "SkMath.h" +#include "SkScalar.h" // size of the precomputed bitmap filter tables for high quality filtering. // Used to precompute the shape of the filter kernel. diff --git a/src/core/SkBitmapHeap.cpp b/src/core/SkBitmapHeap.cpp index 07e65fb3e2..e1d3cae7e7 100644 --- a/src/core/SkBitmapHeap.cpp +++ b/src/core/SkBitmapHeap.cpp @@ -7,10 +7,7 @@ */ #include "SkBitmapHeap.h" - #include "SkBitmap.h" -#include "SkReadBuffer.h" -#include "SkWriteBuffer.h" #include "SkTSearch.h" SkBitmapHeapEntry::SkBitmapHeapEntry() diff --git a/src/core/SkBitmapHeap.h b/src/core/SkBitmapHeap.h index 259d947923..1e1979fbf7 100644 --- a/src/core/SkBitmapHeap.h +++ b/src/core/SkBitmapHeap.h @@ -1,18 +1,19 @@ - /* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ + #ifndef SkBitmapHeap_DEFINED #define SkBitmapHeap_DEFINED +#include "SkAtomics.h" #include "SkBitmap.h" -#include "SkFlattenable.h" +#include "SkPoint.h" #include "SkRefCnt.h" #include "SkTDArray.h" -#include "SkAtomics.h" +#include "SkTypes.h" /** * SkBitmapHeapEntry provides users of SkBitmapHeap (using internal storage) with a means to... diff --git a/src/core/SkBitmapScaler.cpp b/src/core/SkBitmapScaler.cpp index 84b926ec34..6e253023fd 100644 --- a/src/core/SkBitmapScaler.cpp +++ b/src/core/SkBitmapScaler.cpp @@ -7,10 +7,12 @@ #include "SkBitmapScaler.h" #include "SkBitmapFilter.h" +#include "SkConvolver.h" +#include "SkImageInfo.h" +#include "SkPixmap.h" #include "SkRect.h" +#include "SkScalar.h" #include "SkTArray.h" -#include "SkErrorInternals.h" -#include "SkConvolver.h" // SkResizeFilter ---------------------------------------------------------------- diff --git a/src/core/SkBlitter.cpp b/src/core/SkBlitter.cpp index 59078d6a87..a932ba90b9 100644 --- a/src/core/SkBlitter.cpp +++ b/src/core/SkBlitter.cpp @@ -9,7 +9,6 @@ #include "SkAntiRun.h" #include "SkColor.h" #include "SkColorFilter.h" -#include "SkCoreBlitters.h" #include "SkFilterShader.h" #include "SkReadBuffer.h" #include "SkWriteBuffer.h" diff --git a/src/core/SkBlitter.h b/src/core/SkBlitter.h index a2ab89dc8a..baa9ccc39f 100644 --- a/src/core/SkBlitter.h +++ b/src/core/SkBlitter.h @@ -9,14 +9,16 @@ #define SkBlitter_DEFINED #include "SkBitmapProcShader.h" -#include "SkMask.h" -#include "SkMatrix.h" -#include "SkPaint.h" -#include "SkPixmap.h" -#include "SkRefCnt.h" +#include "SkColor.h" +#include "SkRect.h" #include "SkRegion.h" #include "SkShader.h" -#include "SkSmallAllocator.h" +#include "SkTypes.h" + +class SkMatrix; +class SkPaint; +class SkPixmap; +struct SkMask; /** SkBlitter and its subclasses are responsible for actually writing pixels into memory. Besides efficiency, they handle clipping and antialiasing. diff --git a/src/core/SkBuffer.cpp b/src/core/SkBuffer.cpp index 590b05b859..51c368abe8 100644 --- a/src/core/SkBuffer.cpp +++ b/src/core/SkBuffer.cpp @@ -1,4 +1,3 @@ - /* * Copyright 2006 The Android Open Source Project * @@ -6,9 +5,10 @@ * found in the LICENSE file. */ - #include "SkBuffer.h" +#include <string.h> + //////////////////////////////////////////////////////////////////////////////////////// void SkRBuffer::readNoSizeCheck(void* buffer, size_t size) diff --git a/src/core/SkBuffer.h b/src/core/SkBuffer.h index aaafb36399..92ed7059db 100644 --- a/src/core/SkBuffer.h +++ b/src/core/SkBuffer.h @@ -11,6 +11,7 @@ #define SkBuffer_DEFINED #include "SkScalar.h" +#include "SkTypes.h" /** \class SkRBuffer diff --git a/src/core/SkCachedData.cpp b/src/core/SkCachedData.cpp index f1fb026ba8..16c4eea21a 100644 --- a/src/core/SkCachedData.cpp +++ b/src/core/SkCachedData.cpp @@ -6,7 +6,6 @@ */ #include "SkCachedData.h" -#include "SkRefCnt.h" #include "SkDiscardableMemory.h" //#define TRACK_CACHEDDATA_LIFETIME diff --git a/src/core/SkCachedData.h b/src/core/SkCachedData.h index 6493a75e0b..a861157298 100644 --- a/src/core/SkCachedData.h +++ b/src/core/SkCachedData.h @@ -9,6 +9,7 @@ #define SkCachedData_DEFINED #include "SkMutex.h" +#include "SkTypes.h" class SkDiscardableMemory; diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 2308151b40..342f79f9d9 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -5,10 +5,12 @@ * found in the LICENSE file. */ +#include "SkBitmapDevice.h" #include "SkCanvas.h" #include "SkCanvasPriv.h" -#include "SkBitmapDevice.h" +#include "SkClipStack.h" #include "SkColorFilter.h" +#include "SkDevice.h" #include "SkDraw.h" #include "SkDrawable.h" #include "SkDrawFilter.h" @@ -18,7 +20,6 @@ #include "SkMetaData.h" #include "SkNinePatchIter.h" #include "SkPaintPriv.h" -#include "SkPathOps.h" #include "SkPatchUtils.h" #include "SkPicture.h" #include "SkRasterClip.h" @@ -26,12 +27,12 @@ #include "SkRRect.h" #include "SkSmallAllocator.h" #include "SkSurface_Base.h" -#include "SkTemplates.h" #include "SkTextBlob.h" #include "SkTextFormatParams.h" #include "SkTLazy.h" #include "SkTraceEvent.h" -#include "SkUtils.h" + +#include <new> #if SK_SUPPORT_GPU #include "GrRenderTarget.h" diff --git a/src/core/SkColor.cpp b/src/core/SkColor.cpp index 6fa239ff53..73e6ddd874 100644 --- a/src/core/SkColor.cpp +++ b/src/core/SkColor.cpp @@ -1,4 +1,3 @@ - /* * Copyright 2006 The Android Open Source Project * @@ -6,9 +5,9 @@ * found in the LICENSE file. */ - #include "SkColor.h" #include "SkColorPriv.h" +#include "SkFixed.h" SkPMColor SkPreMultiplyARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { return SkPremultiplyARGBInline(a, r, g, b); diff --git a/src/core/SkColorFilter.cpp b/src/core/SkColorFilter.cpp index 8e01090dd3..9cbcc64017 100644 --- a/src/core/SkColorFilter.cpp +++ b/src/core/SkColorFilter.cpp @@ -7,9 +7,14 @@ #include "SkColorFilter.h" #include "SkReadBuffer.h" +#include "SkRefCnt.h" #include "SkString.h" +#include "SkTDArray.h" +#include "SkUnPreMultiply.h" #include "SkWriteBuffer.h" +class GrFragmentProcessor; + bool SkColorFilter::asColorMode(SkColor* color, SkXfermode::Mode* mode) const { return false; } diff --git a/src/core/SkMaskFilter.cpp b/src/core/SkMaskFilter.cpp index bb700cd4b9..5e7cee6bd6 100644 --- a/src/core/SkMaskFilter.cpp +++ b/src/core/SkMaskFilter.cpp @@ -11,6 +11,7 @@ #include "SkBlitter.h" #include "SkDraw.h" #include "SkCachedData.h" +#include "SkPath.h" #include "SkRasterClip.h" #include "SkRRect.h" #include "SkTypes.h" diff --git a/src/core/SkMiniRecorder.cpp b/src/core/SkMiniRecorder.cpp index 916c47730b..df40fa45e7 100644 --- a/src/core/SkMiniRecorder.cpp +++ b/src/core/SkMiniRecorder.cpp @@ -6,6 +6,7 @@ */ #include "SkCanvas.h" +#include "SkTLazy.h" #include "SkLazyPtr.h" #include "SkMiniRecorder.h" #include "SkPicture.h" diff --git a/src/core/SkPictureImageGenerator.cpp b/src/core/SkPictureImageGenerator.cpp index 0dea60dfd9..6c3faef250 100644 --- a/src/core/SkPictureImageGenerator.cpp +++ b/src/core/SkPictureImageGenerator.cpp @@ -11,6 +11,7 @@ #include "SkMatrix.h" #include "SkPaint.h" #include "SkPicture.h" +#include "SkTLazy.h" class SkPictureImageGenerator : SkImageGenerator { public: |