Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: gm/checkerboard.h

Issue 834303005: Factor out checkerboard function in gm and sampleapp into tools. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: ignore pdf gm change Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « expectations/gm/Test-Ubuntu12-ShuttleA-GTX660-x86_64-Release/expected-results.json ('k') | gm/checkerboard.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698