Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2015 Google Inc. | |
|
djsollen
2015/01/07 16:24:20
move to tools and make the checkerboard changes in
| |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
| 7 #ifndef checkerboard_DEFINED | |
| 8 #define checkerboard_DEFINED | |
| 9 | |
| 10 #include "SkColor.h" | |
| 11 | |
| 12 class SkCanvas; | |
| 13 | |
| 14 namespace skiagm { | |
| 15 | |
| 16 /** | |
| 17 Draw a checkerboard pattern in the current canvas, restricted to | |
| 18 the current clip. | |
| 19 */ | |
| 20 void Checkerboard(SkCanvas* canvas, SkColor color1, SkColor color2); | |
| 21 | |
| 22 inline void Checkerboard(SkCanvas* canvas) { | |
| 23 Checkerboard(canvas, 0xFF999999, 0xFF666666); | |
| 24 } | |
| 25 | |
| 26 } // namespace skiagm | |
| 27 | |
| 28 #endif // checkerboard_DEFINED | |
| OLD | NEW |