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

Side by Side Diff: gm/nested.cpp

Issue 2300623005: Replace a lot of 'static const' with 'constexpr' or 'const'. (Closed)
Patch Set: small msvc concession Created 4 years, 3 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/multipicturedraw.cpp ('k') | gm/nonclosedpaths.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 "SkPath.h" 9 #include "SkPath.h"
10 #include "SkRandom.h" 10 #include "SkRandom.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 } 117 }
118 118
119 xOff = 2; 119 xOff = 2;
120 yOff += 45; 120 yOff += 45;
121 } 121 }
122 122
123 } 123 }
124 124
125 private: 125 private:
126 static const int kImageWidth = 269; 126 static constexpr int kImageWidth = 269;
127 static const int kImageHeight = 134; 127 static constexpr int kImageHeight = 134;
128 128
129 bool fDoAA; 129 bool fDoAA;
130 bool fFlipped; 130 bool fFlipped;
131 131
132 typedef GM INHERITED; 132 typedef GM INHERITED;
133 }; 133 };
134 134
135 /////////////////////////////////////////////////////////////////////////////// 135 ///////////////////////////////////////////////////////////////////////////////
136 136
137 DEF_GM( return new NestedGM(/* doAA = */ true, /* flipped = */ false); ) 137 DEF_GM( return new NestedGM(/* doAA = */ true, /* flipped = */ false); )
138 DEF_GM( return new NestedGM(/* doAA = */ false, /* flipped = */ false); ) 138 DEF_GM( return new NestedGM(/* doAA = */ false, /* flipped = */ false); )
139 DEF_GM( return new NestedGM(/* doAA = */ true, /* flipped = */ true); ) 139 DEF_GM( return new NestedGM(/* doAA = */ true, /* flipped = */ true); )
140 DEF_GM( return new NestedGM(/* doAA = */ false, /* flipped = */ true); ) 140 DEF_GM( return new NestedGM(/* doAA = */ false, /* flipped = */ true); )
141 141
142 } 142 }
OLDNEW
« no previous file with comments | « gm/multipicturedraw.cpp ('k') | gm/nonclosedpaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698