OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "SampleCode.h" | 8 #include "SampleCode.h" |
9 #include "SkBlurMask.h" | 9 #include "SkBlurMask.h" |
10 #include "SkBlurMaskFilter.h" | 10 #include "SkBlurMaskFilter.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 fPath.setFillType(SkPath::kWinding_FillType); | 203 fPath.setFillType(SkPath::kWinding_FillType); |
204 drawSet(canvas, &paint); | 204 drawSet(canvas, &paint); |
205 | 205 |
206 canvas->translate(0, fPath.getBounds().height() * 5 / 4); | 206 canvas->translate(0, fPath.getBounds().height() * 5 / 4); |
207 fPath.setFillType(SkPath::kEvenOdd_FillType); | 207 fPath.setFillType(SkPath::kEvenOdd_FillType); |
208 drawSet(canvas, &paint); | 208 drawSet(canvas, &paint); |
209 } | 209 } |
210 | 210 |
211 virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, | 211 virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, |
212 unsigned modi) override { | 212 unsigned modi) override { |
213 this->inval(NULL); | 213 this->inval(nullptr); |
214 return this->INHERITED::onFindClickHandler(x, y, modi); | 214 return this->INHERITED::onFindClickHandler(x, y, modi); |
215 } | 215 } |
216 private: | 216 private: |
217 typedef SampleView INHERITED; | 217 typedef SampleView INHERITED; |
218 }; | 218 }; |
219 | 219 |
220 ////////////////////////////////////////////////////////////////////////////// | 220 ////////////////////////////////////////////////////////////////////////////// |
221 | 221 |
222 static SkView* MyFactory() { return new StrokePathView; } | 222 static SkView* MyFactory() { return new StrokePathView; } |
223 static SkViewRegister reg(MyFactory); | 223 static SkViewRegister reg(MyFactory); |
OLD | NEW |