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

Side by Side Diff: gm/pathfill.cpp

Issue 867963004: remove unused GM flags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: guarded flags Created 5 years, 11 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/patheffects.cpp ('k') | gm/pathreverse.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 #include "gm.h" 8 #include "gm.h"
9 9
10 typedef SkScalar (*MakePathProc)(SkPath*); 10 typedef SkScalar (*MakePathProc)(SkPath*);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 SkPath fPath[N]; 118 SkPath fPath[N];
119 SkScalar fDY[N]; 119 SkScalar fDY[N];
120 public: 120 public:
121 PathFillGM() { 121 PathFillGM() {
122 for (size_t i = 0; i < N; i++) { 122 for (size_t i = 0; i < N; i++) {
123 fDY[i] = gProcs[i](&fPath[i]); 123 fDY[i] = gProcs[i](&fPath[i]);
124 } 124 }
125 } 125 }
126 126
127 protected: 127 protected:
128 uint32_t onGetFlags() const SK_OVERRIDE {
129 return kSkipTiled_Flag;
130 }
131 128
132 SkString onShortName() SK_OVERRIDE { 129 SkString onShortName() SK_OVERRIDE {
133 return SkString("pathfill"); 130 return SkString("pathfill");
134 } 131 }
135 132
136 SkISize onISize() SK_OVERRIDE { 133 SkISize onISize() SK_OVERRIDE {
137 return SkISize::Make(640, 480); 134 return SkISize::Make(640, 480);
138 } 135 }
139 136
140 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 137 void onDraw(SkCanvas* canvas) SK_OVERRIDE {
(...skipping 15 matching lines...) Expand all
156 SkPath fPath[N]; 153 SkPath fPath[N];
157 SkScalar fDY[N]; 154 SkScalar fDY[N];
158 public: 155 public:
159 PathInverseFillGM() { 156 PathInverseFillGM() {
160 for (size_t i = 0; i < N; i++) { 157 for (size_t i = 0; i < N; i++) {
161 fDY[i] = gProcs[i](&fPath[i]); 158 fDY[i] = gProcs[i](&fPath[i]);
162 } 159 }
163 } 160 }
164 161
165 protected: 162 protected:
166 uint32_t onGetFlags() const SK_OVERRIDE {
167 return kSkipTiled_Flag;
168 }
169 163
170 SkString onShortName() SK_OVERRIDE { 164 SkString onShortName() SK_OVERRIDE {
171 return SkString("pathinvfill"); 165 return SkString("pathinvfill");
172 } 166 }
173 167
174 SkISize onISize() SK_OVERRIDE { 168 SkISize onISize() SK_OVERRIDE {
175 return SkISize::Make(450, 220); 169 return SkISize::Make(450, 220);
176 } 170 }
177 171
178 static void show(SkCanvas* canvas, const SkPath& path, const SkPaint& paint, 172 static void show(SkCanvas* canvas, const SkPath& path, const SkPaint& paint,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 typedef skiagm::GM INHERITED; 215 typedef skiagm::GM INHERITED;
222 }; 216 };
223 217
224 /////////////////////////////////////////////////////////////////////////////// 218 ///////////////////////////////////////////////////////////////////////////////
225 219
226 static skiagm::GM* MyFactory(void*) { return new PathFillGM; } 220 static skiagm::GM* MyFactory(void*) { return new PathFillGM; }
227 static skiagm::GMRegistry reg(MyFactory); 221 static skiagm::GMRegistry reg(MyFactory);
228 222
229 static skiagm::GM* F1(void*) { return new PathInverseFillGM; } 223 static skiagm::GM* F1(void*) { return new PathInverseFillGM; }
230 static skiagm::GMRegistry gR1(F1); 224 static skiagm::GMRegistry gR1(F1);
OLDNEW
« no previous file with comments | « gm/patheffects.cpp ('k') | gm/pathreverse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698