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

Side by Side Diff: gm/imageblur2.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/image.cpp ('k') | gm/imagefromyuvtextures.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 2011 Google Inc. 2 * Copyright 2011 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 "SkBlurImageFilter.h" 9 #include "SkBlurImageFilter.h"
10 #include "SkRandom.h" 10 #include "SkRandom.h"
11 11
12 // TODO deprecate imageblur 12 // TODO deprecate imageblur
13 13
14 #define WIDTH 500 14 #define WIDTH 500
15 #define HEIGHT 500 15 #define HEIGHT 500
16 16
17 static const float kBlurSigmas[] = { 17 constexpr float kBlurSigmas[] = {
18 0.0, 0.3f, 0.5f, 2.0f, 32.0f, 80.0f }; 18 0.0, 0.3f, 0.5f, 2.0f, 32.0f, 80.0f };
19 19
20 const char* kTestStrings[] = { 20 const char* kTestStrings[] = {
21 "The quick`~", 21 "The quick`~",
22 "brown fox[]", 22 "brown fox[]",
23 "jumped over", 23 "jumped over",
24 "the lazy@#$", 24 "the lazy@#$",
25 "dog.{}!%^&", 25 "dog.{}!%^&",
26 "*()+=-\\'\"/", 26 "*()+=-\\'\"/",
27 }; 27 };
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 SkString fName; 84 SkString fName;
85 85
86 typedef GM INHERITED; 86 typedef GM INHERITED;
87 }; 87 };
88 88
89 ////////////////////////////////////////////////////////////////////////////// 89 //////////////////////////////////////////////////////////////////////////////
90 90
91 DEF_GM(return new BlurImageFilter;) 91 DEF_GM(return new BlurImageFilter;)
92 92
93 } 93 }
OLDNEW
« no previous file with comments | « gm/image.cpp ('k') | gm/imagefromyuvtextures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698