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

Side by Side Diff: gm/shadertext.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/shaderbounds.cpp ('k') | gm/shadertext2.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 "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkGradientShader.h" 10 #include "SkGradientShader.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 /////////////////////////////////////////////////////////////////////////////// 85 ///////////////////////////////////////////////////////////////////////////////
86 86
87 class ShaderTextGM : public GM { 87 class ShaderTextGM : public GM {
88 public: 88 public:
89 ShaderTextGM() { 89 ShaderTextGM() {
90 this->setBGColor(0xFFDDDDDD); 90 this->setBGColor(0xFFDDDDDD);
91 } 91 }
92 92
93 protected: 93 protected:
94 94
95 SkString onShortName() SK_OVERRIDE { 95 SkString onShortName() override {
96 return SkString("shadertext"); 96 return SkString("shadertext");
97 } 97 }
98 98
99 SkISize onISize() SK_OVERRIDE { return SkISize::Make(1450, 500); } 99 SkISize onISize() override { return SkISize::Make(1450, 500); }
100 100
101 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 101 void onDraw(SkCanvas* canvas) override {
102 const char text[] = "Shaded Text"; 102 const char text[] = "Shaded Text";
103 const int textLen = SK_ARRAY_COUNT(text) - 1; 103 const int textLen = SK_ARRAY_COUNT(text) - 1;
104 const int pointSize = 36; 104 const int pointSize = 36;
105 105
106 const int w = pointSize * textLen; 106 const int w = pointSize * textLen;
107 const int h = pointSize; 107 const int h = pointSize;
108 108
109 SkPoint pts[2] = { 109 SkPoint pts[2] = {
110 { 0, 0 }, 110 { 0, 0 },
111 { SkIntToScalar(w), SkIntToScalar(h) } 111 { SkIntToScalar(w), SkIntToScalar(h) }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 private: 183 private:
184 typedef GM INHERITED; 184 typedef GM INHERITED;
185 }; 185 };
186 186
187 /////////////////////////////////////////////////////////////////////////////// 187 ///////////////////////////////////////////////////////////////////////////////
188 188
189 static GM* MyFactory(void*) { return new ShaderTextGM; } 189 static GM* MyFactory(void*) { return new ShaderTextGM; }
190 static GMRegistry reg(MyFactory); 190 static GMRegistry reg(MyFactory);
191 } 191 }
OLDNEW
« no previous file with comments | « gm/shaderbounds.cpp ('k') | gm/shadertext2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698