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

Side by Side Diff: gm/selftest.cpp

Issue 1518893002: Use DEF_GM everywhere (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « gm/pathinterior.cpp ('k') | gm/strokes.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 /** 8 /**
9 * Pathologically simple drawing tests, designed to generate consistent 9 * Pathologically simple drawing tests, designed to generate consistent
10 * output images across platforms for gm/tests/run.sh 10 * output images across platforms for gm/tests/run.sh
(...skipping 30 matching lines...) Expand all
41 }; 41 };
42 42
43 ////////////////////////////////////////////////////////////////////////////// 43 //////////////////////////////////////////////////////////////////////////////
44 44
45 // We use translucent colors to make sure we are properly handling cases like 45 // We use translucent colors to make sure we are properly handling cases like
46 // those which caused https://code.google.com/p/skia/issues/detail?id=1079 46 // those which caused https://code.google.com/p/skia/issues/detail?id=1079
47 // ('gm generating spurious pixel_error messages as of r7258') 47 // ('gm generating spurious pixel_error messages as of r7258')
48 static SkColor kTranslucentGreen = 0x7700EE00; 48 static SkColor kTranslucentGreen = 0x7700EE00;
49 static SkColor kTranslucentBlue = 0x770000DD; 49 static SkColor kTranslucentBlue = 0x770000DD;
50 50
51 static skiagm::GM* F1(void*) { 51 DEF_GM( return new SelfTestGM("selftest1", kTranslucentGreen); )
52 return new SelfTestGM("selftest1", kTranslucentGreen); 52 DEF_GM( return new SelfTestGM("selftest2", kTranslucentBlue); )
53 }
54 static skiagm::GM* F2(void*) {
55 return new SelfTestGM("selftest2", kTranslucentBlue);
56 }
57
58 static skiagm::GMRegistry gR1(F1);
59 static skiagm::GMRegistry gR2(F2);
OLDNEW
« no previous file with comments | « gm/pathinterior.cpp ('k') | gm/strokes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698