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

Side by Side Diff: gm/inversepaths.cpp

Issue 815883002: Cleanup: Another round of override fixes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: revert include changes Created 6 years 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/imageblur2.cpp ('k') | gm/lighting.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 public: 67 public:
68 InversePathsGM() { 68 InversePathsGM() {
69 69
70 } 70 }
71 71
72 protected: 72 protected:
73 virtual uint32_t onGetFlags() const SK_OVERRIDE { 73 virtual uint32_t onGetFlags() const SK_OVERRIDE {
74 return kSkipTiled_Flag; 74 return kSkipTiled_Flag;
75 } 75 }
76 76
77 virtual SkString onShortName() { 77 virtual SkString onShortName() SK_OVERRIDE {
78 return SkString("inverse_paths"); 78 return SkString("inverse_paths");
79 } 79 }
80 80
81 virtual SkISize onISize() { 81 virtual SkISize onISize() SK_OVERRIDE {
82 return SkISize::Make(800, 900); 82 return SkISize::Make(800, 900);
83 } 83 }
84 84
85 virtual void onDraw(SkCanvas* canvas) { 85 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
86 SkScalar cx = slideWidth / 2 + slideBoundary; 86 SkScalar cx = slideWidth / 2 + slideBoundary;
87 SkScalar cy = slideHeight / 2 + slideBoundary; 87 SkScalar cy = slideHeight / 2 + slideBoundary;
88 SkScalar dx = slideWidth + 2 * slideBoundary; 88 SkScalar dx = slideWidth + 2 * slideBoundary;
89 SkScalar dy = slideHeight + 2 * slideBoundary; 89 SkScalar dy = slideHeight + 2 * slideBoundary;
90 90
91 SkRect clipRect = SkRect::MakeLTRB(slideBoundary, slideBoundary, 91 SkRect clipRect = SkRect::MakeLTRB(slideBoundary, slideBoundary,
92 slideBoundary + slideWidth, 92 slideBoundary + slideWidth,
93 slideBoundary + slideHeight); 93 slideBoundary + slideHeight);
94 SkPaint clipPaint; 94 SkPaint clipPaint;
95 clipPaint.setStyle(SkPaint::kStroke_Style); 95 clipPaint.setStyle(SkPaint::kStroke_Style);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 } 142 }
143 } 143 }
144 144
145 private: 145 private:
146 typedef GM INHERITED; 146 typedef GM INHERITED;
147 }; 147 };
148 148
149 DEF_GM( return new InversePathsGM; ) 149 DEF_GM( return new InversePathsGM; )
150 } 150 }
OLDNEW
« no previous file with comments | « gm/imageblur2.cpp ('k') | gm/lighting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698