Index: gm/checkerboard.h |
diff --git a/gm/checkerboard.h b/gm/checkerboard.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b2e8faffbf629254ece9ff7220919b1a93b2f144 |
--- /dev/null |
+++ b/gm/checkerboard.h |
@@ -0,0 +1,28 @@ |
+/* |
+ * Copyright 2015 Google Inc. |
djsollen
2015/01/07 16:24:20
move to tools and make the checkerboard changes in
|
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+#ifndef checkerboard_DEFINED |
+#define checkerboard_DEFINED |
+ |
+#include "SkColor.h" |
+ |
+class SkCanvas; |
+ |
+namespace skiagm { |
+ |
+/** |
+ Draw a checkerboard pattern in the current canvas, restricted to |
+ the current clip. |
+ */ |
+void Checkerboard(SkCanvas* canvas, SkColor color1, SkColor color2); |
+ |
+inline void Checkerboard(SkCanvas* canvas) { |
+ Checkerboard(canvas, 0xFF999999, 0xFF666666); |
+} |
+ |
+} // namespace skiagm |
+ |
+#endif // checkerboard_DEFINED |