diff options
author | reed <reed@chromium.org> | 2015-08-04 18:44:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-04 18:44:57 -0700 |
commit | fb8c1fcab19c99b56d2fdcf6234751d6f0465142 (patch) | |
tree | 983506af7eb10ffa837e170bcafab650a8d7d477 /src/core | |
parent | 7403d87db8e43d4c2b5b25ac22a0ebc22bd09d69 (diff) |
Revert of IWYU: 'core' target, files starting A-C. (patchset #5 id:80001 of https://codereview.chromium.org/1265033002/ )
Reason for revert:
revert to unblock DEPS roll
../../chrome/browser/chromeos/display/overscan_calibrator.cc:43:10: error: variable has incomplete type 'SkPath'
SkPath base_path;
Original issue's description:
> IWYU: 'core' target, files starting A-C.
>
> TBR=reed@google.com
> Verbal lgtm, does not change API.
>
> Committed: https://skia.googlesource.com/skia/+/7403d87db8e43d4c2b5b25ac22a0ebc22bd09d69
TBR=reed@google.com,mtklein@google.com,bungeman@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/1273613002
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, 52 insertions, 60 deletions
diff --git a/src/core/SkAdvancedTypefaceMetrics.cpp b/src/core/SkAdvancedTypefaceMetrics.cpp index 81e98f3613..f9b25dc96a 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 aa7a02af4f..bddff64db8 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 a4c7f4f81a..ce5026ca70 100644 --- a/src/core/SkBBHFactory.cpp +++ b/src/core/SkBBHFactory.cpp @@ -6,9 +6,7 @@ */ #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 97b0db6f20..aa26bdcab3 100644 --- a/src/core/SkBitmap.cpp +++ b/src/core/SkBitmap.cpp @@ -1,3 +1,4 @@ + /* * Copyright 2008 The Android Open Source Project * @@ -5,22 +6,23 @@ * found in the LICENSE file. */ + #include "SkAtomics.h" #include "SkBitmap.h" #include "SkColorPriv.h" -#include "SkData.h" -#include "SkFilterQuality.h" +#include "SkDither.h" +#include "SkFlattenable.h" +#include "SkImagePriv.h" #include "SkMallocPixelRef.h" #include "SkMask.h" -#include "SkMath.h" +#include "SkPackBits.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 <string.h> +#include <new> static bool reset_return_false(SkBitmap* bm) { bm->reset(); @@ -747,6 +749,9 @@ 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(); @@ -1216,7 +1221,6 @@ 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 dfe1756c4c..9da43d8c9c 100644 --- a/src/core/SkBitmapDevice.cpp +++ b/src/core/SkBitmapDevice.cpp @@ -8,16 +8,10 @@ #include "SkBitmapDevice.h" #include "SkConfig8888.h" #include "SkDraw.h" -#include "SkMatrix.h" -#include "SkPaint.h" -#include "SkPath.h" #include "SkPixelRef.h" -#include "SkPixmap.h" +#include "SkRasterClip.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 8c44e9f1fd..82494d9bbe 100644 --- a/src/core/SkBitmapFilter.cpp +++ b/src/core/SkBitmapFilter.cpp @@ -5,11 +5,17 @@ * found in the LICENSE file. */ -#include "SkBitmapFilter.h" +#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 "SkRTConf.h" -#include "SkTypes.h" - -#include <string.h> +#include "SkMath.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 eb327d716c..93b552efd7 100644 --- a/src/core/SkBitmapFilter.h +++ b/src/core/SkBitmapFilter.h @@ -1,3 +1,4 @@ + /* * Copyright 2013 Google Inc. * @@ -5,12 +6,11 @@ * 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 e1d3cae7e7..07e65fb3e2 100644 --- a/src/core/SkBitmapHeap.cpp +++ b/src/core/SkBitmapHeap.cpp @@ -7,7 +7,10 @@ */ #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 1e1979fbf7..259d947923 100644 --- a/src/core/SkBitmapHeap.h +++ b/src/core/SkBitmapHeap.h @@ -1,19 +1,18 @@ + /* * 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 "SkPoint.h" +#include "SkFlattenable.h" #include "SkRefCnt.h" #include "SkTDArray.h" -#include "SkTypes.h" +#include "SkAtomics.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 6e253023fd..84b926ec34 100644 --- a/src/core/SkBitmapScaler.cpp +++ b/src/core/SkBitmapScaler.cpp @@ -7,12 +7,10 @@ #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 a932ba90b9..59078d6a87 100644 --- a/src/core/SkBlitter.cpp +++ b/src/core/SkBlitter.cpp @@ -9,6 +9,7 @@ #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 baa9ccc39f..a2ab89dc8a 100644 --- a/src/core/SkBlitter.h +++ b/src/core/SkBlitter.h @@ -9,16 +9,14 @@ #define SkBlitter_DEFINED #include "SkBitmapProcShader.h" -#include "SkColor.h" -#include "SkRect.h" +#include "SkMask.h" +#include "SkMatrix.h" +#include "SkPaint.h" +#include "SkPixmap.h" +#include "SkRefCnt.h" #include "SkRegion.h" #include "SkShader.h" -#include "SkTypes.h" - -class SkMatrix; -class SkPaint; -class SkPixmap; -struct SkMask; +#include "SkSmallAllocator.h" /** 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 51c368abe8..590b05b859 100644 --- a/src/core/SkBuffer.cpp +++ b/src/core/SkBuffer.cpp @@ -1,3 +1,4 @@ + /* * Copyright 2006 The Android Open Source Project * @@ -5,9 +6,8 @@ * found in the LICENSE file. */ -#include "SkBuffer.h" -#include <string.h> +#include "SkBuffer.h" //////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/core/SkBuffer.h b/src/core/SkBuffer.h index 92ed7059db..aaafb36399 100644 --- a/src/core/SkBuffer.h +++ b/src/core/SkBuffer.h @@ -11,7 +11,6 @@ #define SkBuffer_DEFINED #include "SkScalar.h" -#include "SkTypes.h" /** \class SkRBuffer diff --git a/src/core/SkCachedData.cpp b/src/core/SkCachedData.cpp index 16c4eea21a..f1fb026ba8 100644 --- a/src/core/SkCachedData.cpp +++ b/src/core/SkCachedData.cpp @@ -6,6 +6,7 @@ */ #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 a861157298..6493a75e0b 100644 --- a/src/core/SkCachedData.h +++ b/src/core/SkCachedData.h @@ -9,7 +9,6 @@ #define SkCachedData_DEFINED #include "SkMutex.h" -#include "SkTypes.h" class SkDiscardableMemory; diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 342f79f9d9..2308151b40 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -5,12 +5,10 @@ * found in the LICENSE file. */ -#include "SkBitmapDevice.h" #include "SkCanvas.h" #include "SkCanvasPriv.h" -#include "SkClipStack.h" +#include "SkBitmapDevice.h" #include "SkColorFilter.h" -#include "SkDevice.h" #include "SkDraw.h" #include "SkDrawable.h" #include "SkDrawFilter.h" @@ -20,6 +18,7 @@ #include "SkMetaData.h" #include "SkNinePatchIter.h" #include "SkPaintPriv.h" +#include "SkPathOps.h" #include "SkPatchUtils.h" #include "SkPicture.h" #include "SkRasterClip.h" @@ -27,12 +26,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 <new> +#include "SkUtils.h" #if SK_SUPPORT_GPU #include "GrRenderTarget.h" diff --git a/src/core/SkColor.cpp b/src/core/SkColor.cpp index 73e6ddd874..6fa239ff53 100644 --- a/src/core/SkColor.cpp +++ b/src/core/SkColor.cpp @@ -1,3 +1,4 @@ + /* * Copyright 2006 The Android Open Source Project * @@ -5,9 +6,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 9cbcc64017..8e01090dd3 100644 --- a/src/core/SkColorFilter.cpp +++ b/src/core/SkColorFilter.cpp @@ -7,14 +7,9 @@ #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 5e7cee6bd6..bb700cd4b9 100644 --- a/src/core/SkMaskFilter.cpp +++ b/src/core/SkMaskFilter.cpp @@ -11,7 +11,6 @@ #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 df40fa45e7..916c47730b 100644 --- a/src/core/SkMiniRecorder.cpp +++ b/src/core/SkMiniRecorder.cpp @@ -6,7 +6,6 @@ */ #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 6c3faef250..0dea60dfd9 100644 --- a/src/core/SkPictureImageGenerator.cpp +++ b/src/core/SkPictureImageGenerator.cpp @@ -11,7 +11,6 @@ #include "SkMatrix.h" #include "SkPaint.h" #include "SkPicture.h" -#include "SkTLazy.h" class SkPictureImageGenerator : SkImageGenerator { public: |