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

Side by Side Diff: gm/poly2poly.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/points.cpp ('k') | gm/polygons.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 9
10 class SkJSCanvas { 10 class SkJSCanvas {
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 ctx.restore(); 172 ctx.restore();
173 173
174 ctx.fillText("As Expected - line width 1", 10, 10); 174 ctx.fillText("As Expected - line width 1", 10, 10);
175 } 175 }
176 176
177 class Poly2PolyGM : public skiagm::GM { 177 class Poly2PolyGM : public skiagm::GM {
178 public: 178 public:
179 Poly2PolyGM() {} 179 Poly2PolyGM() {}
180 180
181 protected: 181 protected:
182 uint32_t onGetFlags() const SK_OVERRIDE {
183 return kSkipTiled_Flag;
184 }
185 182
186 SkString onShortName() SK_OVERRIDE { 183 SkString onShortName() SK_OVERRIDE {
187 return SkString("poly2poly"); 184 return SkString("poly2poly");
188 } 185 }
189 186
190 SkISize onISize() SK_OVERRIDE { 187 SkISize onISize() SK_OVERRIDE {
191 return SkISize::Make(835, 840); 188 return SkISize::Make(835, 840);
192 } 189 }
193 190
194 static void doDraw(SkCanvas* canvas, SkPaint* paint, const int isrc[], 191 static void doDraw(SkCanvas* canvas, SkPaint* paint, const int isrc[],
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 canvas->restore(); 265 canvas->restore();
269 } 266 }
270 267
271 private: 268 private:
272 typedef skiagm::GM INHERITED; 269 typedef skiagm::GM INHERITED;
273 }; 270 };
274 271
275 ////////////////////////////////////////////////////////////////////////////// 272 //////////////////////////////////////////////////////////////////////////////
276 273
277 DEF_GM( return new Poly2PolyGM; ) 274 DEF_GM( return new Poly2PolyGM; )
OLDNEW
« no previous file with comments | « gm/points.cpp ('k') | gm/polygons.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698