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

Side by Side Diff: gm/clip_strokerect.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/circularclips.cpp ('k') | gm/colorfilters.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 "SkPath.h" 10 #include "SkPath.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 canvas->save(); 56 canvas->save();
57 canvas->clipRect(rect2, SkRegion::kReplace_Op, true); 57 canvas->clipRect(rect2, SkRegion::kReplace_Op, true);
58 canvas->drawRect(r2, p); 58 canvas->drawRect(r2, p);
59 canvas->restore(); 59 canvas->restore();
60 60
61 p.setColor(SK_ColorBLUE); 61 p.setColor(SK_ColorBLUE);
62 p.setStrokeWidth(2); 62 p.setStrokeWidth(2);
63 canvas->drawRect(rect2, p); 63 canvas->drawRect(rect2, p);
64 } 64 }
65 65
66 uint32_t onGetFlags() const SK_OVERRIDE { return kSkipPipe_Flag; }
67
68 private: 66 private:
69 typedef skiagm::GM INHERITED; 67 typedef skiagm::GM INHERITED;
70 }; 68 };
71 69
72 DEF_GM( return SkNEW(ClipStrokeRectGM); ) 70 DEF_GM( return SkNEW(ClipStrokeRectGM); )
73 71
OLDNEW
« no previous file with comments | « gm/circularclips.cpp ('k') | gm/colorfilters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698