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

Side by Side Diff: gm/patheffects.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/patchgrid.cpp ('k') | gm/pathfill.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 2012 Google Inc. 2 * Copyright 2012 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 #include "gm.h" 7 #include "gm.h"
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkPaint.h" 9 #include "SkPaint.h"
10 #include "Sk1DPathEffect.h" 10 #include "Sk1DPathEffect.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 static const PE_Proc gPE2[] = { fill_pe, discrete_pe, tile_pe }; 103 static const PE_Proc gPE2[] = { fill_pe, discrete_pe, tile_pe };
104 104
105 class PathEffectGM : public GM { 105 class PathEffectGM : public GM {
106 public: 106 public:
107 PathEffectGM() {} 107 PathEffectGM() {}
108 108
109 protected: 109 protected:
110 110
111 SkString onShortName() SK_OVERRIDE { 111 SkString onShortName() override {
112 return SkString("patheffect"); 112 return SkString("patheffect");
113 } 113 }
114 114
115 SkISize onISize() SK_OVERRIDE { return SkISize::Make(800, 600); } 115 SkISize onISize() override { return SkISize::Make(800, 600); }
116 116
117 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 117 void onDraw(SkCanvas* canvas) override {
118 SkPaint paint; 118 SkPaint paint;
119 paint.setAntiAlias(true); 119 paint.setAntiAlias(true);
120 paint.setStyle(SkPaint::kStroke_Style); 120 paint.setStyle(SkPaint::kStroke_Style);
121 121
122 SkPath path; 122 SkPath path;
123 path.moveTo(20, 20); 123 path.moveTo(20, 20);
124 path.lineTo(70, 120); 124 path.lineTo(70, 120);
125 path.lineTo(120, 30); 125 path.lineTo(120, 30);
126 path.lineTo(170, 80); 126 path.lineTo(170, 80);
127 path.lineTo(240, 50); 127 path.lineTo(240, 50);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 private: 162 private:
163 typedef GM INHERITED; 163 typedef GM INHERITED;
164 }; 164 };
165 165
166 ////////////////////////////////////////////////////////////////////////////// 166 //////////////////////////////////////////////////////////////////////////////
167 167
168 static GM* PathEffectFactory(void*) { return new PathEffectGM; } 168 static GM* PathEffectFactory(void*) { return new PathEffectGM; }
169 static GMRegistry regPathEffect(PathEffectFactory); 169 static GMRegistry regPathEffect(PathEffectFactory);
170 170
171 } 171 }
OLDNEW
« no previous file with comments | « gm/patchgrid.cpp ('k') | gm/pathfill.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698