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

Side by Side Diff: gm/simpleaaclip.cpp

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 years, 9 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/shallowgradient.cpp ('k') | gm/skbug1719.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 2012 Google Inc. 2 * Copyright 2012 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 8
9 #include "gm.h" 9 #include "gm.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 kRect_GeomType, 45 kRect_GeomType,
46 kPath_GeomType, 46 kPath_GeomType,
47 kAAClip_GeomType 47 kAAClip_GeomType
48 }; 48 };
49 49
50 SimpleClipGM(SkGeomTypes geomType) 50 SimpleClipGM(SkGeomTypes geomType)
51 : fGeomType(geomType) { 51 : fGeomType(geomType) {
52 } 52 }
53 53
54 protected: 54 protected:
55 void onOnceBeforeDraw() SK_OVERRIDE { 55 void onOnceBeforeDraw() override {
56 // offset the rects a bit so we get anti-aliasing in the rect case 56 // offset the rects a bit so we get anti-aliasing in the rect case
57 fBase.set(100.65f, 57 fBase.set(100.65f,
58 100.65f, 58 100.65f,
59 150.65f, 59 150.65f,
60 150.65f); 60 150.65f);
61 fRect = fBase; 61 fRect = fBase;
62 fRect.inset(5, 5); 62 fRect.inset(5, 5);
63 fRect.offset(25, 25); 63 fRect.offset(25, 25);
64 64
65 fBasePath.addRoundRect(fBase, SkIntToScalar(5), SkIntToScalar(5)); 65 fBasePath.addRoundRect(fBase, SkIntToScalar(5), SkIntToScalar(5));
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 }; 194 };
195 195
196 ////////////////////////////////////////////////////////////////////////////// 196 //////////////////////////////////////////////////////////////////////////////
197 197
198 // rects 198 // rects
199 DEF_GM( return new SimpleClipGM(SimpleClipGM::kRect_GeomType); ) 199 DEF_GM( return new SimpleClipGM(SimpleClipGM::kRect_GeomType); )
200 DEF_GM( return new SimpleClipGM(SimpleClipGM::kPath_GeomType); ) 200 DEF_GM( return new SimpleClipGM(SimpleClipGM::kPath_GeomType); )
201 DEF_GM( return new SimpleClipGM(SimpleClipGM::kAAClip_GeomType); ) 201 DEF_GM( return new SimpleClipGM(SimpleClipGM::kAAClip_GeomType); )
202 202
203 } 203 }
OLDNEW
« no previous file with comments | « gm/shallowgradient.cpp ('k') | gm/skbug1719.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698