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

Side by Side Diff: gm/verttext2.cpp

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 years, 9 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/verttext.cpp ('k') | gm/verylargebitmap.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 /* Tests text vertical text rendering with different fonts and centering. 10 /* Tests text vertical text rendering with different fonts and centering.
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 virtual ~VertText2GM() { 28 virtual ~VertText2GM() {
29 SkSafeUnref(fProp); 29 SkSafeUnref(fProp);
30 SkSafeUnref(fMono); 30 SkSafeUnref(fMono);
31 } 31 }
32 32
33 protected: 33 protected:
34 34
35 35
36 SkString onShortName() SK_OVERRIDE { 36 SkString onShortName() override {
37 return SkString("verttext2"); 37 return SkString("verttext2");
38 } 38 }
39 39
40 SkISize onISize() SK_OVERRIDE { return SkISize::Make(640, 480); } 40 SkISize onISize() override { return SkISize::Make(640, 480); }
41 41
42 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 42 void onDraw(SkCanvas* canvas) override {
43 for (int i = 0; i < 3; ++i) { 43 for (int i = 0; i < 3; ++i) {
44 SkPaint paint; 44 SkPaint paint;
45 paint.setColor(SK_ColorRED); 45 paint.setColor(SK_ColorRED);
46 paint.setAntiAlias(true); 46 paint.setAntiAlias(true);
47 y = textHeight; 47 y = textHeight;
48 canvas->drawLine(0, SkIntToScalar(10), 48 canvas->drawLine(0, SkIntToScalar(10),
49 SkIntToScalar(110), SkIntToScalar(10), paint); 49 SkIntToScalar(110), SkIntToScalar(10), paint);
50 canvas->drawLine(0, SkIntToScalar(240), 50 canvas->drawLine(0, SkIntToScalar(240),
51 SkIntToScalar(110), SkIntToScalar(240), paint); 51 SkIntToScalar(110), SkIntToScalar(240), paint);
52 canvas->drawLine(0, SkIntToScalar(470), 52 canvas->drawLine(0, SkIntToScalar(470),
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 SkTypeface* fProp; 89 SkTypeface* fProp;
90 SkTypeface* fMono; 90 SkTypeface* fMono;
91 }; 91 };
92 92
93 /////////////////////////////////////////////////////////////////////////////// 93 ///////////////////////////////////////////////////////////////////////////////
94 94
95 static GM* MyFactory(void*) { return new VertText2GM; } 95 static GM* MyFactory(void*) { return new VertText2GM; }
96 static GMRegistry reg(MyFactory); 96 static GMRegistry reg(MyFactory);
97 97
98 } 98 }
OLDNEW
« no previous file with comments | « gm/verttext.cpp ('k') | gm/verylargebitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698