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

Side by Side Diff: gm/nested.cpp

Issue 256373002: Turn on quilt mode in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « gm/mixedxfermodes.cpp ('k') | gm/ninepatchstretch.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 #include "gm.h" 8 #include "gm.h"
9 #include "SkRandom.h" 9 #include "SkRandom.h"
10 #include "SkRRect.h" 10 #include "SkRRect.h"
11 11
12 namespace skiagm { 12 namespace skiagm {
13 13
14 // Test out various combinations of nested rects, ovals and rrects. 14 // Test out various combinations of nested rects, ovals and rrects.
15 class NestedGM : public GM { 15 class NestedGM : public GM {
16 public: 16 public:
17 NestedGM(bool doAA) : fDoAA(doAA) { 17 NestedGM(bool doAA) : fDoAA(doAA) {
18 this->setBGColor(0xFFDDDDDD); 18 this->setBGColor(0xFFDDDDDD);
19 } 19 }
20 20
21 protected: 21 protected:
22 virtual uint32_t onGetFlags() const SK_OVERRIDE {
23 return kSkipTiled_Flag;
24 }
25
22 virtual SkString onShortName() SK_OVERRIDE { 26 virtual SkString onShortName() SK_OVERRIDE {
23 SkString name("nested"); 27 SkString name("nested");
24 if (fDoAA) { 28 if (fDoAA) {
25 name.append("_aa"); 29 name.append("_aa");
26 } else { 30 } else {
27 name.append("_bw"); 31 name.append("_bw");
28 } 32 }
29 return name; 33 return name;
30 } 34 }
31 35
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 typedef GM INHERITED; 120 typedef GM INHERITED;
117 }; 121 };
118 122
119 /////////////////////////////////////////////////////////////////////////////// 123 ///////////////////////////////////////////////////////////////////////////////
120 124
121 DEF_GM( return new NestedGM(true); ) 125 DEF_GM( return new NestedGM(true); )
122 DEF_GM( return new NestedGM(false); ) 126 DEF_GM( return new NestedGM(false); )
123 127
124 128
125 } 129 }
OLDNEW
« no previous file with comments | « gm/mixedxfermodes.cpp ('k') | gm/ninepatchstretch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698