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

Side by Side Diff: gm/aarectmodes.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/aaclip.cpp ('k') | gm/alphagradients.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 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 namespace skiagm { 126 namespace skiagm {
127 127
128 class AARectModesGM : public GM { 128 class AARectModesGM : public GM {
129 SkPaint fBGPaint; 129 SkPaint fBGPaint;
130 public: 130 public:
131 AARectModesGM () { 131 AARectModesGM () {
132 fBGPaint.setShader(make_bg_shader())->unref(); 132 fBGPaint.setShader(make_bg_shader())->unref();
133 } 133 }
134 134
135 protected: 135 protected:
136 uint32_t onGetFlags() const SK_OVERRIDE {
137 return kSkipTiled_Flag;
138 }
139 136
140 SkString onShortName() SK_OVERRIDE { 137 SkString onShortName() SK_OVERRIDE {
141 return SkString("aarectmodes"); 138 return SkString("aarectmodes");
142 } 139 }
143 140
144 SkISize onISize() SK_OVERRIDE { return SkISize::Make(640, 480); } 141 SkISize onISize() SK_OVERRIDE { return SkISize::Make(640, 480); }
145 142
146 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 143 void onDraw(SkCanvas* canvas) SK_OVERRIDE {
147 if (false) { // avoid bit rot, suppress warning 144 if (false) { // avoid bit rot, suppress warning
148 test4(canvas); 145 test4(canvas);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 private: 179 private:
183 typedef GM INHERITED; 180 typedef GM INHERITED;
184 }; 181 };
185 182
186 ////////////////////////////////////////////////////////////////////////////// 183 //////////////////////////////////////////////////////////////////////////////
187 184
188 static GM* MyFactory(void*) { return new AARectModesGM; } 185 static GM* MyFactory(void*) { return new AARectModesGM; }
189 static GMRegistry reg(MyFactory); 186 static GMRegistry reg(MyFactory);
190 187
191 } 188 }
OLDNEW
« no previous file with comments | « gm/aaclip.cpp ('k') | gm/alphagradients.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698