IWYU for gms.
This almost gets gms to be iwyu clean. The last bit is around gm.cpp
and the tracing framework and its use of atomic. Will also need a way
of keeping things from regressing, which is difficult due to needing to
do this outside-in.
Change-Id: I1393531e99da8b0f1a29f55c53c86d53f459af7d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/211593
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/gm/colorfilterimagefilter.cpp b/gm/colorfilterimagefilter.cpp
index 70f95ef..cfce7a4 100644
--- a/gm/colorfilterimagefilter.cpp
+++ b/gm/colorfilterimagefilter.cpp
@@ -6,14 +6,29 @@
*/
#include "gm/gm.h"
+#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
-#include "include/core/SkColorPriv.h"
+#include "include/core/SkColor.h"
+#include "include/core/SkColorFilter.h"
+#include "include/core/SkImage.h"
+#include "include/core/SkImageFilter.h"
+#include "include/core/SkPaint.h"
+#include "include/core/SkPoint.h"
+#include "include/core/SkRect.h"
+#include "include/core/SkRefCnt.h"
+#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
-#include "include/effects/SkColorMatrixFilter.h"
-
+#include "include/core/SkTileMode.h"
#include "include/effects/SkBlurImageFilter.h"
#include "include/effects/SkColorFilterImageFilter.h"
+#include "include/effects/SkColorMatrix.h"
+#include "include/effects/SkGradientShader.h"
+#include "include/private/SkTArray.h"
#include "include/private/SkTDArray.h"
+#include "tools/Resources.h"
+
+#include <string.h>
+#include <utility>
#define FILTER_WIDTH SkIntToScalar(30)
#define FILTER_HEIGHT SkIntToScalar(30)
@@ -50,10 +65,6 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
-#include "include/core/SkImage.h"
-#include "include/effects/SkGradientShader.h"
-#include "tools/Resources.h"
-
static sk_sp<SkShader> sh_make_lineargradient0() {
const SkPoint pts[] = { { 0, 0 }, { 100, 100 } };
const SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE };
@@ -186,8 +197,6 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
-#include "include/effects/SkGradientShader.h"
-
template <typename T> class SkTRefArray : public SkTDArray<T> {
public:
~SkTRefArray() { this->unrefAll(); }