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

Side by Side Diff: gm/degeneratesegments.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/dcshader.cpp ('k') | gm/dftext.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 #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 "SkRandom.h" 10 #include "SkRandom.h"
11 11
12 namespace skiagm { 12 namespace skiagm {
13 13
14 class DegenerateSegmentsGM : public GM { 14 class DegenerateSegmentsGM : public GM {
15 public: 15 public:
16 DegenerateSegmentsGM() {} 16 DegenerateSegmentsGM() {}
17 17
18 protected: 18 protected:
19 struct PathAndName { 19 struct PathAndName {
20 SkPath fPath; 20 SkPath fPath;
21 const char* fName1; 21 const char* fName1;
22 const char* fName2; 22 const char* fName2;
23 }; 23 };
24 24
25 uint32_t onGetFlags() const SK_OVERRIDE {
26 return kSkipTiled_Flag;
27 }
28
29 SkString onShortName() { 25 SkString onShortName() {
30 return SkString("degeneratesegments"); 26 return SkString("degeneratesegments");
31 } 27 }
32 28
33 SkISize onISize() { return SkISize::Make(896, 930); } 29 SkISize onISize() { return SkISize::Make(896, 930); }
34 30
35 typedef SkPoint (*AddSegmentFunc)(SkPath&, SkPoint&); 31 typedef SkPoint (*AddSegmentFunc)(SkPath&, SkPoint&);
36 32
37 // We need to use explicit commands here, instead of addPath, because we 33 // We need to use explicit commands here, instead of addPath, because we
38 // do not want the moveTo that is added at the beginning of a path to 34 // do not want the moveTo that is added at the beginning of a path to
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 private: 393 private:
398 typedef GM INHERITED; 394 typedef GM INHERITED;
399 }; 395 };
400 396
401 ////////////////////////////////////////////////////////////////////////////// 397 //////////////////////////////////////////////////////////////////////////////
402 398
403 static GM* MyFactory(void*) { return new DegenerateSegmentsGM; } 399 static GM* MyFactory(void*) { return new DegenerateSegmentsGM; }
404 static GMRegistry reg(MyFactory); 400 static GMRegistry reg(MyFactory);
405 401
406 } 402 }
OLDNEW
« no previous file with comments | « gm/dcshader.cpp ('k') | gm/dftext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698