aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-03-14 15:07:43 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-14 21:07:15 +0000
commitcb3d49c5f2ad1d4100a686cc4940f4acce74a12e (patch)
tree7b1aecc143302d2e16f4829b244417eb369e4760 /samplecode
parent3eda0bf4bf006bd826824e41011a7b7438bf8dcb (diff)
Some iwyu for tests which will otherwise break.
A change currently in progress would break these test files since they aren't including what they use. Make them include what they use so they don't break in the future. Change-Id: I25d8d57631706dec0d0197b3759c6c18a0fe3aa0 Reviewed-on: https://skia-review.googlesource.com/114465 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleFatBits.cpp22
-rw-r--r--samplecode/SampleQuadStroker.cpp27
2 files changed, 38 insertions, 11 deletions
diff --git a/samplecode/SampleFatBits.cpp b/samplecode/SampleFatBits.cpp
index e85c87bc66..2074856fcb 100644
--- a/samplecode/SampleFatBits.cpp
+++ b/samplecode/SampleFatBits.cpp
@@ -5,18 +5,28 @@
* found in the LICENSE file.
*/
-#include "sk_tool_utils.h"
#include "SampleCode.h"
-#include "SkView.h"
+#include "SkBlendMode.h"
#include "SkCanvas.h"
+#include "SkClipOpPriv.h"
+#include "SkColor.h"
+#include "SkImageInfo.h"
+#include "SkMatrix.h"
+#include "SkPaint.h"
#include "SkPath.h"
+#include "SkPoint.h"
#include "SkPointPriv.h"
-#include "SkRegion.h"
+#include "SkRect.h"
+#include "SkRefCnt.h"
+#include "SkScalar.h"
#include "SkShader.h"
-#include "SkUtils.h"
-#include "SkImage.h"
+#include "SkString.h"
#include "SkSurface.h"
-#include "SkClipOpPriv.h"
+#include "SkTypes.h"
+#include "SkView.h"
+#include "sk_tool_utils.h"
+
+class SkEvent;
#define FAT_PIXEL_COLOR SK_ColorBLACK
#define PIXEL_CENTER_SIZE 3
diff --git a/samplecode/SampleQuadStroker.cpp b/samplecode/SampleQuadStroker.cpp
index 59d6ed5a1e..6d17026fea 100644
--- a/samplecode/SampleQuadStroker.cpp
+++ b/samplecode/SampleQuadStroker.cpp
@@ -5,18 +5,35 @@
* found in the LICENSE file.
*/
-#include "sk_tool_utils.h"
#include "SampleCode.h"
-#include "SkView.h"
+#include "SkBlendMode.h"
#include "SkCanvas.h"
+#include "SkColor.h"
#include "SkGeometry.h"
+#include "SkImageInfo.h"
+#include "SkMatrix.h"
+#include "SkPaint.h"
+#include "SkPath.h"
#include "SkPathMeasure.h"
+#include "SkPoint.h"
#include "SkPointPriv.h"
-#include "SkRandom.h"
#include "SkRRect.h"
-#include "SkColorPriv.h"
-#include "SkStrokerPriv.h"
+#include "SkRect.h"
+#include "SkRefCnt.h"
+#include "SkScalar.h"
+#include "SkShader.h"
+#include "SkString.h"
+#include "SkStroke.h"
#include "SkSurface.h"
+#include "SkTArray.h"
+#include "SkTemplates.h"
+#include "SkTypes.h"
+#include "SkView.h"
+#include "sk_tool_utils.h"
+
+#include <cfloat>
+
+class SkEvent;
static bool hittest(const SkPoint& target, SkScalar x, SkScalar y) {
const SkScalar TOL = 7;