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

Side by Side Diff: gm/dashcubics.cpp

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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/cubicpaths.cpp ('k') | gm/dashing.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 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkPath.h" 10 #include "SkPath.h"
11 #include "SkParsePath.h" 11 #include "SkParsePath.h"
12 #include "SkDashPathEffect.h" 12 #include "SkDashPathEffect.h"
13 13
14 /* 14 /*
15 * Inspired by http://code.google.com/p/chromium/issues/detail?id=112145 15 * Inspired by http://code.google.com/p/chromium/issues/detail?id=112145
16 */ 16 */
17 17
18 class DashCubicsGM : public skiagm::GM { 18 class DashCubicsGM : public skiagm::GM {
19 public: 19 public:
20 DashCubicsGM() {} 20 DashCubicsGM() {}
21 21
22 protected: 22 protected:
23 virtual uint32_t onGetFlags() const SK_OVERRIDE { 23 uint32_t onGetFlags() const SK_OVERRIDE {
24 return kSkipTiled_Flag; 24 return kSkipTiled_Flag;
25 } 25 }
26 26
27 virtual SkString onShortName() { 27 virtual SkString onShortName() {
28 return SkString("dashcubics"); 28 return SkString("dashcubics");
29 } 29 }
30 30
31 virtual SkISize onISize() { 31 virtual SkISize onISize() {
32 return SkISize::Make(640, 480); 32 return SkISize::Make(640, 480);
33 } 33 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 69
70 private: 70 private:
71 typedef GM INHERITED; 71 typedef GM INHERITED;
72 }; 72 };
73 73
74 ////////////////////////////////////////////////////////////////////////////// 74 //////////////////////////////////////////////////////////////////////////////
75 75
76 static skiagm::GM* MyFactory(void*) { return new DashCubicsGM; } 76 static skiagm::GM* MyFactory(void*) { return new DashCubicsGM; }
77 static skiagm::GMRegistry reg(MyFactory); 77 static skiagm::GMRegistry reg(MyFactory);
OLDNEW
« no previous file with comments | « gm/cubicpaths.cpp ('k') | gm/dashing.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698