aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-05-02 15:33:01 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-03 13:22:28 +0000
commitfed00319c9bafa41c8df658708030c072b301a41 (patch)
tree15bb74cab65d66f80cc1ab1f943f1fb36827b5af
parenta1c50c6aacc3e14053458cd89de64fade37269c4 (diff)
Reland: Remove SkLights include from SkCanvas.h
SkLights.h pulls in a bunch of other headers and is not needed (fwdecl works fine). Change-Id: I3ed97cd7861e51dcb7cfa7950a97b420dbc6fbfb TBR=reed@google.com Reviewed-on: https://skia-review.googlesource.com/15143 Commit-Queue: Florin Malita <fmalita@chromium.org> Reviewed-by: Florin Malita <fmalita@chromium.org>
-rw-r--r--bench/ColorCanvasDrawBitmapBench.cpp1
-rw-r--r--bench/DrawBitmapAABench.cpp1
-rw-r--r--bench/DrawLatticeBench.cpp1
-rw-r--r--bench/ImageFilterDAGBench.cpp1
-rw-r--r--bench/MagnifierBench.cpp1
-rw-r--r--bench/ReadPixBench.cpp1
-rw-r--r--bench/ShaderMaskBench.cpp1
-rw-r--r--bench/WritePixelsBench.cpp1
-rw-r--r--gm/bitmapimage.cpp1
-rw-r--r--gm/colorspacexform.cpp1
-rw-r--r--gm/composeshader.cpp1
-rw-r--r--gm/deferredtextureimage.cpp1
-rw-r--r--gm/encode-platform.cpp1
-rw-r--r--gm/encode-srgb.cpp1
-rw-r--r--gm/encode.cpp1
-rw-r--r--gm/gammaencodedpremul.cpp1
-rw-r--r--gm/subsetshader.cpp1
-rw-r--r--include/core/SkCanvas.h2
-rw-r--r--include/private/SkRecords.h1
-rw-r--r--samplecode/SampleAAGeometry.cpp1
-rw-r--r--samplecode/SampleAnimatedText.cpp1
-rw-r--r--samplecode/SampleLayerMask.cpp1
-rw-r--r--src/core/SkCanvas.cpp1
-rw-r--r--src/core/SkDraw.h1
-rw-r--r--src/core/SkLiteDL.cpp1
-rw-r--r--src/core/SkLiteDL.h1
-rw-r--r--src/core/SkPictureCommon.h1
-rw-r--r--src/core/SkRecord.cpp1
-rw-r--r--src/core/SkRecordDraw.cpp1
-rw-r--r--src/fonts/SkRandomScalerContext.cpp1
-rw-r--r--src/pdf/SkPDFCanvas.cpp1
-rw-r--r--src/utils/SkDumpCanvas.cpp1
-rw-r--r--src/utils/SkShadowUtils.cpp1
-rw-r--r--tests/CanvasStateTest.cpp1
-rw-r--r--tests/ClipCubicTest.cpp77
-rw-r--r--tests/ClipperTest.cpp1
-rw-r--r--tests/EmptyPathTest.cpp1
-rw-r--r--tests/HighContrastFilterTest.cpp1
-rw-r--r--tests/PictureBBHTest.cpp1
-rw-r--r--tests/SpecialSurfaceTest.cpp1
-rw-r--r--tools/debugger/SkDrawCommand.h1
-rw-r--r--tools/dump_record.cpp1
-rw-r--r--tools/ok.cpp1
-rw-r--r--tools/ok_srcs.cpp1
-rw-r--r--tools/ok_vias.cpp1
45 files changed, 83 insertions, 39 deletions
diff --git a/bench/ColorCanvasDrawBitmapBench.cpp b/bench/ColorCanvasDrawBitmapBench.cpp
index de13ba2afc..c150e7974b 100644
--- a/bench/ColorCanvasDrawBitmapBench.cpp
+++ b/bench/ColorCanvasDrawBitmapBench.cpp
@@ -6,6 +6,7 @@
*/
#include "Benchmark.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColorSpaceXformCanvas.h"
#include "SkString.h"
diff --git a/bench/DrawBitmapAABench.cpp b/bench/DrawBitmapAABench.cpp
index 011c30a100..f0ccd89000 100644
--- a/bench/DrawBitmapAABench.cpp
+++ b/bench/DrawBitmapAABench.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
#include "Benchmark.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkMatrix.h"
#include "SkPaint.h"
diff --git a/bench/DrawLatticeBench.cpp b/bench/DrawLatticeBench.cpp
index 806815b21d..7a8cdf3b3a 100644
--- a/bench/DrawLatticeBench.cpp
+++ b/bench/DrawLatticeBench.cpp
@@ -6,6 +6,7 @@
*/
#include "Benchmark.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkRect.h"
#include "SkString.h"
diff --git a/bench/ImageFilterDAGBench.cpp b/bench/ImageFilterDAGBench.cpp
index 719e87b58d..350510bf9d 100644
--- a/bench/ImageFilterDAGBench.cpp
+++ b/bench/ImageFilterDAGBench.cpp
@@ -10,6 +10,7 @@
#include "SkBlurImageFilter.h"
#include "SkDisplacementMapEffect.h"
#include "SkCanvas.h"
+#include "SkImage.h"
#include "SkMergeImageFilter.h"
diff --git a/bench/MagnifierBench.cpp b/bench/MagnifierBench.cpp
index 98deade164..6403aa6de7 100644
--- a/bench/MagnifierBench.cpp
+++ b/bench/MagnifierBench.cpp
@@ -6,6 +6,7 @@
*/
#include "Benchmark.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkMagnifierImageFilter.h"
#include "SkRandom.h"
diff --git a/bench/ReadPixBench.cpp b/bench/ReadPixBench.cpp
index 2efb19cc9b..2a8e9c4df3 100644
--- a/bench/ReadPixBench.cpp
+++ b/bench/ReadPixBench.cpp
@@ -6,6 +6,7 @@
*/
#include "Benchmark.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
diff --git a/bench/ShaderMaskBench.cpp b/bench/ShaderMaskBench.cpp
index 8fd99b6536..1cc2347403 100644
--- a/bench/ShaderMaskBench.cpp
+++ b/bench/ShaderMaskBench.cpp
@@ -9,6 +9,7 @@
#include "SkCanvas.h"
#include "SkPaint.h"
#include "SkRandom.h"
+#include "SkShader.h"
#include "SkString.h"
#include "SkTemplates.h"
diff --git a/bench/WritePixelsBench.cpp b/bench/WritePixelsBench.cpp
index 5d6787e25c..4e2dbeba33 100644
--- a/bench/WritePixelsBench.cpp
+++ b/bench/WritePixelsBench.cpp
@@ -6,6 +6,7 @@
*/
#include "Benchmark.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkString.h"
diff --git a/gm/bitmapimage.cpp b/gm/bitmapimage.cpp
index 8c37d5da44..be17af8520 100644
--- a/gm/bitmapimage.cpp
+++ b/gm/bitmapimage.cpp
@@ -8,6 +8,7 @@
#include "gm.h"
#include "Resources.h"
#include "SkCodec.h"
+#include "SkImage.h"
namespace skiagm {
diff --git a/gm/colorspacexform.cpp b/gm/colorspacexform.cpp
index 4657f6ad11..eb98b010d7 100644
--- a/gm/colorspacexform.cpp
+++ b/gm/colorspacexform.cpp
@@ -10,6 +10,7 @@
#include "SkColorSpace_Base.h"
#include "SkColorSpaceXform.h"
#include "SkRect.h"
+#include "SkShader.h"
class ColorSpaceXformGM : public skiagm::GM {
public:
diff --git a/gm/composeshader.cpp b/gm/composeshader.cpp
index 90fcedc970..a6210c9240 100644
--- a/gm/composeshader.cpp
+++ b/gm/composeshader.cpp
@@ -10,6 +10,7 @@
#include "SkCanvas.h"
#include "SkGradientShader.h"
#include "SkGraphics.h"
+#include "SkImage.h"
#include "SkShader.h"
#include "SkString.h"
#include "SkTDArray.h"
diff --git a/gm/deferredtextureimage.cpp b/gm/deferredtextureimage.cpp
index c88b878ccb..9c1fe6a6f2 100644
--- a/gm/deferredtextureimage.cpp
+++ b/gm/deferredtextureimage.cpp
@@ -7,6 +7,7 @@
#include <vector>
#include "gm.h"
+#include "SkImage.h"
#include "SkMipMap.h"
#include "Resources.h"
diff --git a/gm/encode-platform.cpp b/gm/encode-platform.cpp
index f53ebc0d9a..b6e0c1c1c3 100644
--- a/gm/encode-platform.cpp
+++ b/gm/encode-platform.cpp
@@ -10,6 +10,7 @@
#include "Resources.h"
#include "SkCanvas.h"
#include "SkData.h"
+#include "SkImage.h"
#include "SkImageEncoderPriv.h"
#include "SkJpegEncoder.h"
#include "SkUnPreMultiply.h"
diff --git a/gm/encode-srgb.cpp b/gm/encode-srgb.cpp
index fef133212c..bbaeaa7042 100644
--- a/gm/encode-srgb.cpp
+++ b/gm/encode-srgb.cpp
@@ -12,6 +12,7 @@
#include "SkCodec.h"
#include "SkColorSpace_Base.h"
#include "SkData.h"
+#include "SkImage.h"
#include "SkImageEncoderPriv.h"
#include "SkJpegEncoder.h"
#include "SkPM4f.h"
diff --git a/gm/encode.cpp b/gm/encode.cpp
index 1dae1bf042..bf13d3dc09 100644
--- a/gm/encode.cpp
+++ b/gm/encode.cpp
@@ -8,6 +8,7 @@
#include "sk_tool_utils.h"
#include "SkCanvas.h"
#include "SkData.h"
+#include "SkImage.h"
#include "SkImageEncoder.h"
#include "Resources.h"
diff --git a/gm/gammaencodedpremul.cpp b/gm/gammaencodedpremul.cpp
index 327368f879..d55498b235 100644
--- a/gm/gammaencodedpremul.cpp
+++ b/gm/gammaencodedpremul.cpp
@@ -6,6 +6,7 @@
*/
#include "gm.h"
+#include "SkColorPriv.h"
#include "SkColorSpaceXform.h"
#include "SkColorSpaceXformPriv.h"
#include "SkOpts.h"
diff --git a/gm/subsetshader.cpp b/gm/subsetshader.cpp
index c4ef5f7a77..a7029f481a 100644
--- a/gm/subsetshader.cpp
+++ b/gm/subsetshader.cpp
@@ -7,6 +7,7 @@
#include "Resources.h"
#include "SkBitmap.h"
+#include "SkShader.h"
#include "gm.h"
DEF_SIMPLE_GM(bitmap_subset_shader, canvas, 256, 256) {
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index a259e531f3..87ae7f8e2a 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -14,7 +14,6 @@
#include "SkPaint.h"
#include "SkRasterHandleAllocator.h"
#include "SkSurfaceProps.h"
-#include "SkLights.h"
class GrContext;
class GrRenderTargetContext;
@@ -27,6 +26,7 @@ class SkDrawable;
class SkDrawFilter;
class SkImage;
class SkImageFilter;
+class SkLights;
class SkMetaData;
class SkPath;
class SkPicture;
diff --git a/include/private/SkRecords.h b/include/private/SkRecords.h
index 02d2108a4c..f26b6ba880 100644
--- a/include/private/SkRecords.h
+++ b/include/private/SkRecords.h
@@ -11,6 +11,7 @@
#include "SkData.h"
#include "SkCanvas.h"
#include "SkDrawable.h"
+#include "SkImage.h"
#include "SkImageFilter.h"
#include "SkMatrix.h"
#include "SkPath.h"
diff --git a/samplecode/SampleAAGeometry.cpp b/samplecode/SampleAAGeometry.cpp
index 6f6541b0d9..69aa77fd12 100644
--- a/samplecode/SampleAAGeometry.cpp
+++ b/samplecode/SampleAAGeometry.cpp
@@ -6,6 +6,7 @@
*/
#include "SampleCode.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkGeometry.h"
#include "SkIntersections.h"
diff --git a/samplecode/SampleAnimatedText.cpp b/samplecode/SampleAnimatedText.cpp
index e70530ab96..29bd192130 100644
--- a/samplecode/SampleAnimatedText.cpp
+++ b/samplecode/SampleAnimatedText.cpp
@@ -11,6 +11,7 @@
#include "SkUtils.h"
#include "SkColorPriv.h"
#include "SkColorFilter.h"
+#include "SkImage.h"
#include "SkRandom.h"
#include "SkSystemEventTypes.h"
#include "SkTime.h"
diff --git a/samplecode/SampleLayerMask.cpp b/samplecode/SampleLayerMask.cpp
index f0c6a40dc2..b03942199b 100644
--- a/samplecode/SampleLayerMask.cpp
+++ b/samplecode/SampleLayerMask.cpp
@@ -6,6 +6,7 @@
*/
#include "SampleCode.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkPaint.h"
#include "SkPath.h"
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 5e33dbf371..b890ead9cf 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -20,6 +20,7 @@
#include "SkImageFilter.h"
#include "SkImageFilterCache.h"
#include "SkLatticeIter.h"
+#include "SkLights.h"
#include "SkMakeUnique.h"
#include "SkMatrixUtils.h"
#include "SkMetaData.h"
diff --git a/src/core/SkDraw.h b/src/core/SkDraw.h
index b142e7edf7..f2d5946c9e 100644
--- a/src/core/SkDraw.h
+++ b/src/core/SkDraw.h
@@ -13,6 +13,7 @@
#include "SkCanvas.h"
#include "SkMask.h"
#include "SkPaint.h"
+#include "SkPixmap.h"
#include "SkStrokeRec.h"
#include "SkVertices.h"
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp
index 0162327d40..b3149a7d42 100644
--- a/src/core/SkLiteDL.cpp
+++ b/src/core/SkLiteDL.cpp
@@ -8,6 +8,7 @@
#include "SkCanvas.h"
#include "SkData.h"
#include "SkDrawFilter.h"
+#include "SkImage.h"
#include "SkImageFilter.h"
#include "SkLiteDL.h"
#include "SkMath.h"
diff --git a/src/core/SkLiteDL.h b/src/core/SkLiteDL.h
index 270b2ef4ce..c5df350957 100644
--- a/src/core/SkLiteDL.h
+++ b/src/core/SkLiteDL.h
@@ -14,6 +14,7 @@
#include "SkDrawable.h"
#include "SkRect.h"
#include "SkTDArray.h"
+#include "SkTemplates.h"
class SkLiteDL final {
public:
diff --git a/src/core/SkPictureCommon.h b/src/core/SkPictureCommon.h
index 6f6a9f1fcf..a400264c7f 100644
--- a/src/core/SkPictureCommon.h
+++ b/src/core/SkPictureCommon.h
@@ -14,6 +14,7 @@
#include "SkPathEffect.h"
#include "SkRecords.h"
+#include "SkShader.h"
#include "SkTLogic.h"
// N.B. This name is slightly historical: hunting season is now open for SkImages too.
diff --git a/src/core/SkRecord.cpp b/src/core/SkRecord.cpp
index 4df4131340..3553ff5b45 100644
--- a/src/core/SkRecord.cpp
+++ b/src/core/SkRecord.cpp
@@ -6,6 +6,7 @@
*/
#include "SkRecord.h"
+#include "SkImage.h"
#include <algorithm>
SkRecord::~SkRecord() {
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp
index fbb7f7ce6a..e668cc874c 100644
--- a/src/core/SkRecordDraw.cpp
+++ b/src/core/SkRecordDraw.cpp
@@ -6,6 +6,7 @@
*/
#include "SkRecordDraw.h"
+#include "SkImage.h"
#include "SkPatchUtils.h"
void SkRecordDraw(const SkRecord& record,
diff --git a/src/fonts/SkRandomScalerContext.cpp b/src/fonts/SkRandomScalerContext.cpp
index 3a292dcd79..a38f695563 100644
--- a/src/fonts/SkRandomScalerContext.cpp
+++ b/src/fonts/SkRandomScalerContext.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkGlyph.h"
#include "SkMakeUnique.h"
diff --git a/src/pdf/SkPDFCanvas.cpp b/src/pdf/SkPDFCanvas.cpp
index d946f48197..c5cde3d113 100644
--- a/src/pdf/SkPDFCanvas.cpp
+++ b/src/pdf/SkPDFCanvas.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
+#include "SkImage.h"
#include "SkLatticeIter.h"
#include "SkPDFCanvas.h"
#include "SkPDFDevice.h"
diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp
index 35b88de595..05cabadefe 100644
--- a/src/utils/SkDumpCanvas.cpp
+++ b/src/utils/SkDumpCanvas.cpp
@@ -7,6 +7,7 @@
#include "SkData.h"
#include "SkDumpCanvas.h"
+#include "SkImage.h"
#include "SkPatchUtils.h"
#include "SkPicture.h"
#include "SkPixelRef.h"
diff --git a/src/utils/SkShadowUtils.cpp b/src/utils/SkShadowUtils.cpp
index f3311cd268..279ca7338c 100644
--- a/src/utils/SkShadowUtils.cpp
+++ b/src/utils/SkShadowUtils.cpp
@@ -8,6 +8,7 @@
#include "SkShadowUtils.h"
#include "SkCanvas.h"
#include "SkColorFilter.h"
+#include "SkColorPriv.h"
#include "SkPath.h"
#include "SkRandom.h"
#include "SkResourceCache.h"
diff --git a/tests/CanvasStateTest.cpp b/tests/CanvasStateTest.cpp
index 73c8a0e0b9..ae417d40b6 100644
--- a/tests/CanvasStateTest.cpp
+++ b/tests/CanvasStateTest.cpp
@@ -6,6 +6,7 @@
*/
#include "CanvasStateHelpers.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkClipOpPriv.h"
#include "SkCanvasStateUtils.h"
diff --git a/tests/ClipCubicTest.cpp b/tests/ClipCubicTest.cpp
index 1d88eaeaf7..854ac32dd1 100644
--- a/tests/ClipCubicTest.cpp
+++ b/tests/ClipCubicTest.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkCubicClipper.h"
#include "SkGeometry.h"
@@ -165,41 +166,41 @@ DEF_TEST(ClipCubic, reporter) {
#include "SkSurface.h"
-DEF_TEST(test_fuzz_crbug_698714, reporter) {
- auto surface(SkSurface::MakeRasterN32Premul(500, 500));
- SkCanvas* canvas = surface->getCanvas();
- SkPaint paint;
- paint.setAntiAlias(true);
- SkPath path;
- path.setFillType(SkPath::kWinding_FillType);
- path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0,0
- path.lineTo(SkBits2Float(0x43434343), SkBits2Float(0x43430143)); //195.263f, 195.005f
- path.lineTo(SkBits2Float(0x43434343), SkBits2Float(0x43434343)); //195.263f, 195.263f
- path.lineTo(SkBits2Float(0xb5434343), SkBits2Float(0x434300be)); //-7.2741e-07f, 195.003f
- // 195.263f, 195.263f, -1.16387e-05f, 3.58641e-38f, 3.85088e-29f,1.86082e-39f
- path.cubicTo(SkBits2Float(0x43434343), SkBits2Float(0x43434341),
- SkBits2Float(0xb74343bd), SkBits2Float(0x01434343),
- SkBits2Float(0x10434343), SkBits2Float(0x00144332));
- // 4.11823e-38f, 195.263f, 195.263f, 195.263f, -7.2741e-07f, 195.263f
- path.cubicTo(SkBits2Float(0x016037c0), SkBits2Float(0x43434343),
- SkBits2Float(0x43434343), SkBits2Float(0x43434343),
- SkBits2Float(0xb5434343), SkBits2Float(0x43434343));
- // 195.263f, 195.263f, -1.16387e-05f, 3.58641e-38f, 195.263f, -2
- path.cubicTo(SkBits2Float(0x43434344), SkBits2Float(0x43434341),
- SkBits2Float(0xb74343bd), SkBits2Float(0x01434343),
- SkBits2Float(0x43434343), SkBits2Float(0xc0000014));
- // -5.87228e+06f, 3.7773e-07f, 3.60231e-13f, -6.64511e+06f,2.77692e-15f, 2.48803e-15f
- path.cubicTo(SkBits2Float(0xcab33535), SkBits2Float(0x34cacaca),
- SkBits2Float(0x2acacaca), SkBits2Float(0xcacacae3),
- SkBits2Float(0x27481927), SkBits2Float(0x27334805));
- path.lineTo(SkBits2Float(0xb5434343), SkBits2Float(0x43434343)); //-7.2741e-07f, 195.263f
- // 195.263f, 195.263f, -1.16387e-05f, 195.212f, 195.263f, -2
- path.cubicTo(SkBits2Float(0x43434343), SkBits2Float(0x43434341),
- SkBits2Float(0xb74343b9), SkBits2Float(0x43433643),
- SkBits2Float(0x43434343), SkBits2Float(0xc0000014));
- path.lineTo(SkBits2Float(0xc7004343), SkBits2Float(0x27480527)); //-32835.3f, 2.77584e-15f
- path.lineTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0,0
- path.close();
- canvas->clipRect({0, 0, 65, 202});
- canvas->drawPath(path, paint);
-}
+DEF_TEST(test_fuzz_crbug_698714, reporter) {
+ auto surface(SkSurface::MakeRasterN32Premul(500, 500));
+ SkCanvas* canvas = surface->getCanvas();
+ SkPaint paint;
+ paint.setAntiAlias(true);
+ SkPath path;
+ path.setFillType(SkPath::kWinding_FillType);
+ path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0,0
+ path.lineTo(SkBits2Float(0x43434343), SkBits2Float(0x43430143)); //195.263f, 195.005f
+ path.lineTo(SkBits2Float(0x43434343), SkBits2Float(0x43434343)); //195.263f, 195.263f
+ path.lineTo(SkBits2Float(0xb5434343), SkBits2Float(0x434300be)); //-7.2741e-07f, 195.003f
+ // 195.263f, 195.263f, -1.16387e-05f, 3.58641e-38f, 3.85088e-29f,1.86082e-39f
+ path.cubicTo(SkBits2Float(0x43434343), SkBits2Float(0x43434341),
+ SkBits2Float(0xb74343bd), SkBits2Float(0x01434343),
+ SkBits2Float(0x10434343), SkBits2Float(0x00144332));
+ // 4.11823e-38f, 195.263f, 195.263f, 195.263f, -7.2741e-07f, 195.263f
+ path.cubicTo(SkBits2Float(0x016037c0), SkBits2Float(0x43434343),
+ SkBits2Float(0x43434343), SkBits2Float(0x43434343),
+ SkBits2Float(0xb5434343), SkBits2Float(0x43434343));
+ // 195.263f, 195.263f, -1.16387e-05f, 3.58641e-38f, 195.263f, -2
+ path.cubicTo(SkBits2Float(0x43434344), SkBits2Float(0x43434341),
+ SkBits2Float(0xb74343bd), SkBits2Float(0x01434343),
+ SkBits2Float(0x43434343), SkBits2Float(0xc0000014));
+ // -5.87228e+06f, 3.7773e-07f, 3.60231e-13f, -6.64511e+06f,2.77692e-15f, 2.48803e-15f
+ path.cubicTo(SkBits2Float(0xcab33535), SkBits2Float(0x34cacaca),
+ SkBits2Float(0x2acacaca), SkBits2Float(0xcacacae3),
+ SkBits2Float(0x27481927), SkBits2Float(0x27334805));
+ path.lineTo(SkBits2Float(0xb5434343), SkBits2Float(0x43434343)); //-7.2741e-07f, 195.263f
+ // 195.263f, 195.263f, -1.16387e-05f, 195.212f, 195.263f, -2
+ path.cubicTo(SkBits2Float(0x43434343), SkBits2Float(0x43434341),
+ SkBits2Float(0xb74343b9), SkBits2Float(0x43433643),
+ SkBits2Float(0x43434343), SkBits2Float(0xc0000014));
+ path.lineTo(SkBits2Float(0xc7004343), SkBits2Float(0x27480527)); //-32835.3f, 2.77584e-15f
+ path.lineTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0,0
+ path.close();
+ canvas->clipRect({0, 0, 65, 202});
+ canvas->drawPath(path, paint);
+}
diff --git a/tests/ClipperTest.cpp b/tests/ClipperTest.cpp
index 8ebd9b479f..641ed013be 100644
--- a/tests/ClipperTest.cpp
+++ b/tests/ClipperTest.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkEdgeClipper.h"
#include "SkLineClipper.h"
diff --git a/tests/EmptyPathTest.cpp b/tests/EmptyPathTest.cpp
index 060ef8d237..5b857a0119 100644
--- a/tests/EmptyPathTest.cpp
+++ b/tests/EmptyPathTest.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkPath.h"
#include "Test.h"
diff --git a/tests/HighContrastFilterTest.cpp b/tests/HighContrastFilterTest.cpp
index 26f1a7c1f4..7c3fc84c25 100644
--- a/tests/HighContrastFilterTest.cpp
+++ b/tests/HighContrastFilterTest.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkHighContrastFilter.h"
#include "Test.h"
diff --git a/tests/PictureBBHTest.cpp b/tests/PictureBBHTest.cpp
index 64b09b1e03..0bc81c2934 100644
--- a/tests/PictureBBHTest.cpp
+++ b/tests/PictureBBHTest.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkBBoxHierarchy.h"
#include "SkPaint.h"
diff --git a/tests/SpecialSurfaceTest.cpp b/tests/SpecialSurfaceTest.cpp
index 1867e2514a..a336cf669d 100644
--- a/tests/SpecialSurfaceTest.cpp
+++ b/tests/SpecialSurfaceTest.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file
*/
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkSpecialImage.h"
#include "SkSpecialSurface.h"
diff --git a/tools/debugger/SkDrawCommand.h b/tools/debugger/SkDrawCommand.h
index fc2f45adef..1b3d9abf32 100644
--- a/tools/debugger/SkDrawCommand.h
+++ b/tools/debugger/SkDrawCommand.h
@@ -8,6 +8,7 @@
#ifndef SKDRAWCOMMAND_H_
#define SKDRAWCOMMAND_H_
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkTLazy.h"
#include "SkPath.h"
diff --git a/tools/dump_record.cpp b/tools/dump_record.cpp
index c1b87e7535..24017bd6c9 100644
--- a/tools/dump_record.cpp
+++ b/tools/dump_record.cpp
@@ -6,6 +6,7 @@
*/
#include "DumpRecord.h"
+#include "SkBitmap.h"
#include "SkCommandLineFlags.h"
#include "SkDeferredCanvas.h"
#include "SkPicture.h"
diff --git a/tools/ok.cpp b/tools/ok.cpp
index 10f9afdbe0..edda9bede0 100644
--- a/tools/ok.cpp
+++ b/tools/ok.cpp
@@ -10,6 +10,7 @@
// * ok is entirely opt-in. No more maintaining huge --blacklists.
#include "SkGraphics.h"
+#include "SkImage.h"
#include "ok.h"
#include <chrono>
#include <future>
diff --git a/tools/ok_srcs.cpp b/tools/ok_srcs.cpp
index fd5f201cac..5630a34595 100644
--- a/tools/ok_srcs.cpp
+++ b/tools/ok_srcs.cpp
@@ -7,6 +7,7 @@
#include "ok.h"
#include "gm.h"
+#include "SkData.h"
#include "SkOSFile.h"
#include "SkPicture.h"
#include <vector>
diff --git a/tools/ok_vias.cpp b/tools/ok_vias.cpp
index 17e117a7f9..20779cfd78 100644
--- a/tools/ok_vias.cpp
+++ b/tools/ok_vias.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
+#include "SkImage.h"
#include "SkOSFile.h"
#include "SkPictureRecorder.h"
#include "ok.h"