Revert "Revert "Compile all fiddle examples locally""
This reverts commit 37575bf3cad759b4703b2021d3fc80bb8eded60f.
Change-Id: Ia31abbd4906ddeed406f3da1128bc4d4177abf24
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/201603
Reviewed-by: Hal Canary <[email protected]>
Commit-Queue: Hal Canary <[email protected]>
diff --git a/docs/examples/IPoint_009.cpp b/docs/examples/IPoint_009.cpp
new file mode 100644
index 0000000..3952135
--- /dev/null
+++ b/docs/examples/IPoint_009.cpp
@@ -0,0 +1,12 @@
+// Copyright 2019 Google LLC.
+// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
+#include "fiddle/examples.h"
+// HASH=37ffe2817d720f99e6c252332ce70460
+REG_FIDDLE(IPoint_009, 256, 256, true, 0) {
+void draw(SkCanvas* canvas) {
+ SkIPoint test[] = { {0, -0}, {-1, -2}, {SK_MaxS32, -1}, {SK_NaN32, -1} };
+ for (const SkIPoint& pt : test) {
+ SkDebugf("pt: %d, %d %c= pt\n", pt.fX, pt.fY, pt == pt ? '=' : '!');
+ }
+}
+} // END FIDDLE