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

Side by Side Diff: gm/image.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/hittestpath.cpp ('k') | gm/imagealphathreshold.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 "SkData.h" 9 #include "SkData.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 test_surface(canvas, surf0, true); 182 test_surface(canvas, surf0, true);
183 canvas->translate(80, 0); 183 canvas->translate(80, 0);
184 test_surface(canvas, surf1, true); 184 test_surface(canvas, surf1, true);
185 if (surf2) { 185 if (surf2) {
186 canvas->translate(80, 0); 186 canvas->translate(80, 0);
187 test_surface(canvas, surf2, true); 187 test_surface(canvas, surf2, true);
188 } 188 }
189 } 189 }
190 190
191 uint32_t onGetFlags() const SK_OVERRIDE {
192 return GM::kSkipPicture_Flag | GM::kSkipPipe_Flag;
193 }
194
195 private: 191 private:
196 typedef skiagm::GM INHERITED; 192 typedef skiagm::GM INHERITED;
197 }; 193 };
198 DEF_GM( return new ImageGM; ) 194 DEF_GM( return new ImageGM; )
199 195
200 class ImageResizeGM : public skiagm::GM { 196 class ImageResizeGM : public skiagm::GM {
201 enum { 197 enum {
202 W = 100, 198 W = 100,
203 H = 100, 199 H = 100,
204 }; 200 };
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 } 278 }
283 canvas->translate(0, image->height() + 20.0f); 279 canvas->translate(0, image->height() + 20.0f);
284 } 280 }
285 } 281 }
286 282
287 private: 283 private:
288 typedef skiagm::GM INHERITED; 284 typedef skiagm::GM INHERITED;
289 }; 285 };
290 DEF_GM( return new ImageResizeGM; ) 286 DEF_GM( return new ImageResizeGM; )
291 287
OLDNEW
« no previous file with comments | « gm/hittestpath.cpp ('k') | gm/imagealphathreshold.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698