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

Side by Side Diff: gm/inversepaths.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/imageresizetiled.cpp ('k') | gm/lerpmode.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 2013 Google Inc. 2 * Copyright 2013 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 65
66 class InversePathsGM : public GM { 66 class InversePathsGM : public GM {
67 public: 67 public:
68 InversePathsGM() { 68 InversePathsGM() {
69 69
70 } 70 }
71 71
72 protected: 72 protected:
73 73
74 SkString onShortName() SK_OVERRIDE { 74 SkString onShortName() override {
75 return SkString("inverse_paths"); 75 return SkString("inverse_paths");
76 } 76 }
77 77
78 SkISize onISize() SK_OVERRIDE { 78 SkISize onISize() override {
79 return SkISize::Make(800, 900); 79 return SkISize::Make(800, 900);
80 } 80 }
81 81
82 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 82 void onDraw(SkCanvas* canvas) override {
83 SkScalar cx = slideWidth / 2 + slideBoundary; 83 SkScalar cx = slideWidth / 2 + slideBoundary;
84 SkScalar cy = slideHeight / 2 + slideBoundary; 84 SkScalar cy = slideHeight / 2 + slideBoundary;
85 SkScalar dx = slideWidth + 2 * slideBoundary; 85 SkScalar dx = slideWidth + 2 * slideBoundary;
86 SkScalar dy = slideHeight + 2 * slideBoundary; 86 SkScalar dy = slideHeight + 2 * slideBoundary;
87 87
88 SkRect clipRect = SkRect::MakeLTRB(slideBoundary, slideBoundary, 88 SkRect clipRect = SkRect::MakeLTRB(slideBoundary, slideBoundary,
89 slideBoundary + slideWidth, 89 slideBoundary + slideWidth,
90 slideBoundary + slideHeight); 90 slideBoundary + slideHeight);
91 SkPaint clipPaint; 91 SkPaint clipPaint;
92 clipPaint.setStyle(SkPaint::kStroke_Style); 92 clipPaint.setStyle(SkPaint::kStroke_Style);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 } 139 }
140 } 140 }
141 141
142 private: 142 private:
143 typedef GM INHERITED; 143 typedef GM INHERITED;
144 }; 144 };
145 145
146 DEF_GM( return new InversePathsGM; ) 146 DEF_GM( return new InversePathsGM; )
147 } 147 }
OLDNEW
« no previous file with comments | « gm/imageresizetiled.cpp ('k') | gm/lerpmode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698