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

Side by Side Diff: gm/textblobblockreordering.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/texdata.cpp ('k') | gm/textblobcolortrans.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 2016 Google Inc. 2 * Copyright 2016 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 9
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 srcInPaint.setXfermodeMode(SkXfermode::kSrcIn_Mode); 72 srcInPaint.setXfermodeMode(SkXfermode::kSrcIn_Mode);
73 canvas->drawTextBlob(fBlob, 0, 0, srcInPaint); 73 canvas->drawTextBlob(fBlob, 0, 0, srcInPaint);
74 74
75 canvas->translate(SkIntToScalar(xDelta), SkIntToScalar(yDelta)); 75 canvas->translate(SkIntToScalar(xDelta), SkIntToScalar(yDelta));
76 canvas->drawTextBlob(fBlob, 0, 0, paint); 76 canvas->drawTextBlob(fBlob, 0, 0, paint);
77 } 77 }
78 78
79 private: 79 private:
80 SkAutoTUnref<const SkTextBlob> fBlob; 80 SkAutoTUnref<const SkTextBlob> fBlob;
81 81
82 static const int kWidth = 275; 82 static constexpr int kWidth = 275;
83 static const int kHeight = 200; 83 static constexpr int kHeight = 200;
84 84
85 typedef GM INHERITED; 85 typedef GM INHERITED;
86 }; 86 };
87 87
88 ////////////////////////////////////////////////////////////////////////////// 88 //////////////////////////////////////////////////////////////////////////////
89 89
90 DEF_GM(return new TextBlobBlockReordering;) 90 DEF_GM(return new TextBlobBlockReordering;)
91 } 91 }
OLDNEW
« no previous file with comments | « gm/texdata.cpp ('k') | gm/textblobcolortrans.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698