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

Side by Side Diff: gm/hairlines.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/gradtext.cpp ('k') | gm/hairmodes.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 2013 Google Inc. 2 * Copyright 2013 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 "SkTArray.h" 10 #include "SkTArray.h"
11 11
12 namespace skiagm { 12 namespace skiagm {
13 13
14 class HairlinesGM : public GM { 14 class HairlinesGM : public GM {
15 protected: 15 protected:
16 uint32_t onGetFlags() const SK_OVERRIDE {
17 return kSkipTiled_Flag;
18 }
19 16
20 17
21 SkString onShortName() SK_OVERRIDE { 18 SkString onShortName() SK_OVERRIDE {
22 return SkString("hairlines"); 19 return SkString("hairlines");
23 } 20 }
24 21
25 SkISize onISize() SK_OVERRIDE { return SkISize::Make(1250, 1250); } 22 SkISize onISize() SK_OVERRIDE { return SkISize::Make(1250, 1250); }
26 23
27 void onOnceBeforeDraw() SK_OVERRIDE { 24 void onOnceBeforeDraw() SK_OVERRIDE {
28 { 25 {
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 SkTArray<SkPath> fPaths; 216 SkTArray<SkPath> fPaths;
220 typedef GM INHERITED; 217 typedef GM INHERITED;
221 }; 218 };
222 219
223 ////////////////////////////////////////////////////////////////////////////// 220 //////////////////////////////////////////////////////////////////////////////
224 221
225 static GM* MyFactory(void*) { return new HairlinesGM; } 222 static GM* MyFactory(void*) { return new HairlinesGM; }
226 static GMRegistry reg(MyFactory); 223 static GMRegistry reg(MyFactory);
227 224
228 } 225 }
OLDNEW
« no previous file with comments | « gm/gradtext.cpp ('k') | gm/hairmodes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698