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

Side by Side Diff: gm/rrect.cpp

Issue 815883002: Cleanup: Another round of override fixes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: revert include changes Created 6 years 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/quadpaths.cpp ('k') | gm/samplerstress.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 7
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkRRect.h" 10 #include "SkRRect.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 class RRectGM : public skiagm::GM { 124 class RRectGM : public skiagm::GM {
125 public: 125 public:
126 RRectGM() {} 126 RRectGM() {}
127 127
128 protected: 128 protected:
129 virtual uint32_t onGetFlags() const SK_OVERRIDE { 129 virtual uint32_t onGetFlags() const SK_OVERRIDE {
130 return kSkipTiled_Flag; 130 return kSkipTiled_Flag;
131 } 131 }
132 132
133 virtual SkString onShortName() { 133 virtual SkString onShortName() SK_OVERRIDE {
134 return SkString("rrect"); 134 return SkString("rrect");
135 } 135 }
136 136
137 virtual SkISize onISize() { 137 virtual SkISize onISize() SK_OVERRIDE {
138 return SkISize::Make(820, 710); 138 return SkISize::Make(820, 710);
139 } 139 }
140 140
141 virtual void onDraw(SkCanvas* canvas) { 141 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
142 static const InsetProc insetProcs[] = { 142 static const InsetProc insetProcs[] = {
143 inset0, inset1, inset2, inset3 143 inset0, inset1, inset2, inset3
144 }; 144 };
145 145
146 SkRRect rrect[4]; 146 SkRRect rrect[4];
147 SkRect r = { 0, 0, 120, 100 }; 147 SkRect r = { 0, 0, 120, 100 };
148 SkVector radii[4] = { 148 SkVector radii[4] = {
149 { 0, 0 }, { 30, 1 }, { 10, 40 }, { 40, 40 } 149 { 0, 0 }, { 30, 1 }, { 10, 40 }, { 40, 40 }
150 }; 150 };
151 151
(...skipping 12 matching lines...) Expand all
164 canvas->restore(); 164 canvas->restore();
165 canvas->translate(0, 170); 165 canvas->translate(0, 170);
166 } 166 }
167 } 167 }
168 168
169 private: 169 private:
170 typedef GM INHERITED; 170 typedef GM INHERITED;
171 }; 171 };
172 172
173 DEF_GM( return new RRectGM; ) 173 DEF_GM( return new RRectGM; )
OLDNEW
« no previous file with comments | « gm/quadpaths.cpp ('k') | gm/samplerstress.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698