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

Side by Side Diff: gm/blurcircles.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/bleed.cpp ('k') | gm/blurrect.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 2014 Google Inc. 2 * Copyright 2014 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 "SkBlurMask.h" 9 #include "SkBlurMask.h"
10 #include "SkBlurMaskFilter.h" 10 #include "SkBlurMaskFilter.h"
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "SkPaint.h" 12 #include "SkPaint.h"
13 #include "SkString.h" 13 #include "SkString.h"
14 14
15 class BlurCirclesGM : public skiagm::GM { 15 class BlurCirclesGM : public skiagm::GM {
16 public: 16 public:
17 BlurCirclesGM() 17 BlurCirclesGM()
18 : fName("blurcircles") { 18 : fName("blurcircles") {
19 } 19 }
20 20
21 protected: 21 protected:
22 uint32_t onGetFlags() const SK_OVERRIDE {
23 return kSkipTiled_Flag;
24 }
25 22
26 SkString onShortName() SK_OVERRIDE { 23 SkString onShortName() SK_OVERRIDE {
27 return fName; 24 return fName;
28 } 25 }
29 26
30 SkISize onISize() SK_OVERRIDE { 27 SkISize onISize() SK_OVERRIDE {
31 return SkISize::Make(950, 950); 28 return SkISize::Make(950, 950);
32 } 29 }
33 30
34 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 31 void onDraw(SkCanvas* canvas) SK_OVERRIDE {
(...skipping 19 matching lines...) Expand all
54 } 51 }
55 } 52 }
56 } 53 }
57 private: 54 private:
58 const SkString fName; 55 const SkString fName;
59 56
60 typedef skiagm::GM INHERITED; 57 typedef skiagm::GM INHERITED;
61 }; 58 };
62 59
63 DEF_GM(return new BlurCirclesGM();) 60 DEF_GM(return new BlurCirclesGM();)
OLDNEW
« no previous file with comments | « gm/bleed.cpp ('k') | gm/blurrect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698