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

Side by Side Diff: gm/ovals.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/nonclosedpaths.cpp ('k') | gm/patch.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 2013 Google Inc. 3 * Copyright 2013 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 8
9 #include "gm.h" 9 #include "gm.h"
10 #include "SkTArray.h" 10 #include "SkTArray.h"
11 #include "SkRandom.h" 11 #include "SkRandom.h"
12 #include "SkMatrix.h" 12 #include "SkMatrix.h"
13 #include "SkBlurMaskFilter.h" 13 #include "SkBlurMaskFilter.h"
14 #include "SkGradientShader.h" 14 #include "SkGradientShader.h"
15 #include "SkBlurDrawLooper.h" 15 #include "SkBlurDrawLooper.h"
16 #include "SkRect.h" 16 #include "SkRect.h"
17 17
18 namespace skiagm { 18 namespace skiagm {
19 19
20 class OvalGM : public GM { 20 class OvalGM : public GM {
21 public: 21 public:
22 OvalGM() { 22 OvalGM() {
23 this->setBGColor(0xFF000000); 23 this->setBGColor(0xFF000000);
24 this->makePaints(); 24 this->makePaints();
25 this->makeMatrices(); 25 this->makeMatrices();
26 } 26 }
27 27
28 protected: 28 protected:
29 uint32_t onGetFlags() const SK_OVERRIDE {
30 return kSkipTiled_Flag;
31 }
32 29
33 SkString onShortName() SK_OVERRIDE { 30 SkString onShortName() SK_OVERRIDE {
34 return SkString("ovals"); 31 return SkString("ovals");
35 } 32 }
36 33
37 SkISize onISize() SK_OVERRIDE { 34 SkISize onISize() SK_OVERRIDE {
38 return SkISize::Make(1200, 900); 35 return SkISize::Make(1200, 900);
39 } 36 }
40 37
41 void makePaints() { 38 void makePaints() {
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 279
283 typedef GM INHERITED; 280 typedef GM INHERITED;
284 }; 281 };
285 282
286 ////////////////////////////////////////////////////////////////////////////// 283 //////////////////////////////////////////////////////////////////////////////
287 284
288 static GM* MyFactory(void*) { return new OvalGM; } 285 static GM* MyFactory(void*) { return new OvalGM; }
289 static GMRegistry reg(MyFactory); 286 static GMRegistry reg(MyFactory);
290 287
291 } 288 }
OLDNEW
« no previous file with comments | « gm/nonclosedpaths.cpp ('k') | gm/patch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698